[freeside-commits] branch FREESIDE_3_BRANCH updated. 47995fbef165464420b2ce1e431be3c846b10f3f

Ivan ivan at 420.am
Mon Aug 5 13:27:26 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  47995fbef165464420b2ce1e431be3c846b10f3f (commit)
      from  e3cbf8a241b8d805306c3283a5cd2d30c946733a (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 47995fbef165464420b2ce1e431be3c846b10f3f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Aug 5 13:27:25 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