[freeside-commits] branch master updated. a57b44fce003ff336e5e9b3990f4a4b6e288f758
Ivan
ivan at 420.am
Mon Aug 5 13:27:25 PDT 2013
The branch, master has been updated
via a57b44fce003ff336e5e9b3990f4a4b6e288f758 (commit)
from 9d9e19a3f5dee791886aa440bd8c3f65cf4a41ae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a57b44fce003ff336e5e9b3990f4a4b6e288f758
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Aug 5 13:27:24 2013 -0700
fix tower sector editing on errors
diff --git a/httemplate/edit/tower.html b/httemplate/edit/tower.html
index 03b488e..673a271 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 {
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/tower.html | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list