Changeset 253 for trunk


Ignore:
Timestamp:
02/29/12 17:16:16 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix %webvar data propagation bug on record page - always set
defrec, revrec, and fwdzone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r250 r253  
    540540  }
    541541
     542  $page->param(defrec => $webvar{defrec});
     543  $page->param(revrec => $webvar{revrec});
     544  $page->param(fwdzone => $webvar{revrec} eq 'n');
     545
    542546  if ($webvar{recact} eq 'new') {
    543547
     
    548552    $page->param(recact => "add");
    549553    $page->param(parentid => $webvar{parentid});
    550     $page->param(defrec => $webvar{defrec});
    551     $page->param(revrec => $webvar{revrec});
    552     $page->param(fwdzone => $webvar{revrec} eq 'n');
    553554
    554555    fill_recdata();
     
    600601      $page->param(recact       => "add");
    601602      $page->param(parentid     => $webvar{parentid});
    602       $page->param(defrec       => $webvar{defrec});
    603       $page->param(revrec       => $webvar{revrec});
    604603      $page->param(id           => $webvar{id});
    605       $page->param(fwdzone      => $webvar{revrec} eq 'n');
    606604      fill_recdata();   # populate the form... er, mostly.
    607605      if ($config{log_failures}) {
     
    625623    $page->param(parentid       => $webvar{parentid});
    626624    $page->param(id             => $webvar{id});
    627     $page->param(defrec         => $webvar{defrec});
    628     $page->param(revrec         => $webvar{revrec});
    629625    my $recdata = getRecLine($dbh, $webvar{defrec}, $webvar{revrec}, $webvar{id});
    630626    $page->param(name           => $recdata->{host});
     
    672668      $page->param(recact       => "update");
    673669      $page->param(parentid     => $webvar{parentid});
    674       $page->param(defrec       => $webvar{defrec});
    675670      $page->param(id           => $webvar{id});
    676671      fill_recdata();
Note: See TracChangeset for help on using the changeset viewer.