Changeset 270 for trunk/dns.cgi
- Timestamp:
- 03/07/12 17:53:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r269 r270 448 448 # getRecByName($dbh, (revrec => $webvar{revrec}, defrec => $webvar{defrec}, host => 'string')); 449 449 450 if ($webvar{add_failed}) { 451 $page->param(add_failed => 1); 452 $page->param(errmsg => $webvar{errmsg}); 450 if ($session->param('add_failed')) { 451 $session->clear('add_failed'); 452 $page->param(errmsg => $session->param('errmsg')); 453 $session->clear('errmsg'); 453 454 $page->param(revzone => $webvar{revzone}); 454 455 $page->param(revpatt => $webvar{revpatt}); … … 475 476 } else { 476 477 logaction(0, $session->param("username"), $webvar{group}, "Failed adding reverse zone $webvar{revzone} ($msg)"); 477 changepage(page => "newrevzone", revrec => 'y', add_failed => 1, revzone => $webvar{revzone},478 478 $session->param('add_failed', 1); 479 changepage(page => "newrevzone", revzone => $webvar{revzone}, revpatt => $webvar{revpatt}, errmsg => $msg); 479 480 } 480 481
Note:
See TracChangeset
for help on using the changeset viewer.