summaryrefslogtreecommitdiff
path: root/httemplate/edit/tower.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-08-05 13:27:24 -0700
committerIvan Kohler <ivan@freeside.biz>2013-08-05 13:27:24 -0700
commita57b44fce003ff336e5e9b3990f4a4b6e288f758 (patch)
tree7addabd266644a483f13c341de37dc13edcc4693 /httemplate/edit/tower.html
parent9d9e19a3f5dee791886aa440bd8c3f65cf4a41ae (diff)
fix tower sector editing on errors
Diffstat (limited to 'httemplate/edit/tower.html')
-rw-r--r--httemplate/edit/tower.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/tower.html b/httemplate/edit/tower.html
index 03b488e86..673a2713a 100644
--- a/httemplate/edit/tower.html
+++ b/httemplate/edit/tower.html
@@ -32,13 +32,14 @@ my $m2_error_callback = sub { # reconstruct the list
my @fields = qw(sectorname ip_addr);
map {
my $k = $_;
- next if !length($cgi->param($k.'_sectorname'));
new FS::tower_sector {
'towernum' => $object->towernum,
'sectornum' => scalar( $cgi->param($k) ),
map { $_ => scalar( $cgi->param($k.'_'.$_) ) } @fields,
};
- } grep /^sectornum\d+$/, ($cgi->param);
+ } grep length($cgi->param($_.'_sectorname')),
+ grep /^sectornum\d+$/,
+ ($cgi->param);
};
my $default_ip_addr_callback = sub {