Permalink
Browse files

Allow user to select an inactive zone to add records to it. The inact…

…ive flag is there to prevent the zone from being exported, but that's a different thing
  • Loading branch information...
cvicente committed Apr 18, 2018
1 parent 6eb5230 commit 600bfe591fd70657b38ef65ea5d56a8e1077e4cb
Showing with 1 addition and 3 deletions.
  1. +0 −1 htdocs/management/host.html
  2. +1 −2 htdocs/management/ip.html
@@ -224,7 +224,6 @@
}
foreach my $z ( sort { $a->name cmp $b->name } Zone->retrieve_all ){
next if $z->is_dot_arpa;
next unless $z->active;
next if $zone && ($z->id == $zone->id);
if ( $manager && $manager->can($user, 'edit', $z) ){
push @select_list, $z;
@@ -761,7 +761,6 @@
}
foreach my $z ( sort { $a->name cmp $b->name } Zone->retrieve_all ){
next if $z->is_dot_arpa;
next unless $z->active;
next if $zone && ($z->id == $zone->id);
if ( $manager && $manager->can($user, 'edit', $z) ){
push @zone_list, $z;
@@ -1593,7 +1592,7 @@
<p>Link this block with existing forward zones:
<p><select name="link_zones" multiple="multiple">
<option value=""> - select - </option>
% foreach my $zone ( grep { $_->active == 1 && $_->name !~ /\.arpa$/ } @all_zones ){
% foreach my $zone ( grep { $_->name !~ /\.arpa$/ } @all_zones ){
% next if exists $cur_zones{$zone->id};
<option value="<% $zone->id %>"><% $zone->get_label %></option>
% }

0 comments on commit 600bfe5

Please sign in to comment.