Changeset 270 for trunk/dns.cgi


Ignore:
Timestamp:
03/07/12 17:53:31 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Override any bare ZONE defrecs with the provided pattern while
adding a reverse zone.
Also patch up some UI glitches in error handling for revzone add
(match new domain handling more closely)
See #26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r269 r270  
    448448# getRecByName($dbh, (revrec => $webvar{revrec}, defrec => $webvar{defrec}, host => 'string'));
    449449
    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');
    453454    $page->param(revzone => $webvar{revzone});
    454455    $page->param(revpatt => $webvar{revpatt});
     
    475476  } else {
    476477    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         revpatt => $webvar{revpatt}, errmsg => $msg);
     478    $session->param('add_failed', 1);
     479    changepage(page => "newrevzone", revzone => $webvar{revzone}, revpatt => $webvar{revpatt}, errmsg => $msg);
    479480  }
    480481
Note: See TracChangeset for help on using the changeset viewer.