Changeset 293 for trunk/dns.cgi


Ignore:
Timestamp:
03/27/12 17:11:59 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Move action logging for delGroup() into DNSDB.pm. See #35.
Extend checks for Things in the group a little
Delete default reverse records as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r292 r293  
    974974
    975975  } elsif ($webvar{del} eq 'ok') {
    976     my $deleteme = groupName($dbh,$webvar{id}); # get this before we delete it...
    977     my $delparent = parentID($dbh, (id => $webvar{id}, type => 'group'));
    978976    my ($code,$msg) = delGroup($dbh, $webvar{id});
    979977    if ($code eq 'OK') {
    980978##fixme: need to clean up log when deleting a major container
    981       logaction(0, $session->param("username"), $delparent, "Deleted group $deleteme");
    982       changepage(page => "grpman", resultmsg => "Deleted group $deleteme");
     979      changepage(page => "grpman", resultmsg => $msg);
    983980    } else {
    984981# need to find failure mode
    985       logaction(0, $session->param("username"), $delparent, "Failed to delete group $deleteme: $msg")
    986         if $config{log_failures};
    987       changepage(page => "grpman", errmsg => "Error deleting group $deleteme: $msg");
     982      changepage(page => "grpman", errmsg => $msg);
    988983    }
    989984  } else {
Note: See TracChangeset for help on using the changeset viewer.