[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 562dc0428613576947db0504bf0a7faad1a075b4

Mark Wells mark at 420.am
Fri Mar 15 16:38:22 PDT 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  562dc0428613576947db0504bf0a7faad1a075b4 (commit)
       via  ee03481c8c481352142b3fa98c412dea94b3cb29 (commit)
      from  e9d11bf97fab1d74f933c8a0c733bff8910814e4 (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 562dc0428613576947db0504bf0a7faad1a075b4
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Mar 15 16:13:46 2013 -0700

    fix editing of service address fields, from #21327

diff --git a/httemplate/edit/cust_main/top_misc.html b/httemplate/edit/cust_main/top_misc.html
index 0bdcae0..6306000 100644
--- a/httemplate/edit/cust_main/top_misc.html
+++ b/httemplate/edit/cust_main/top_misc.html
@@ -27,12 +27,12 @@ function agent_changed(what) {
   } else {
     for(var i=0; i<ship_fields.length; i++) {
       x = ship_fields[i];
-      f['ship_'+x].value = '';
+      if ( f['ship_'+x].disabled ) {
+        f['ship_'+x].value = '';
+      }
       f['ship_'+x].disabled = false;
     }
-    f['same'].checked = true;
     f['same'].disabled = false;
-    samechanged(f['same']);
   }
 }
 window.onload = function() {

commit ee03481c8c481352142b3fa98c412dea94b3cb29
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Mar 15 16:13:15 2013 -0700

    better error message

diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index 3f25db1..970037b 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -294,7 +294,8 @@ if ( $cgi->param('error') ) {
   my( $query ) = $cgi->keywords;
   $query =~ /^(\d+)$/;
   $custnum=$1;
-  $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } );
+  $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } )
+    or die "custnum $custnum not found";
   if ( $cust_main->dbdef_table->column('paycvv')
        && length($cust_main->paycvv)             ) {
     my $paycvv = $cust_main->paycvv;

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/cust_main.cgi           |    3 ++-
 httemplate/edit/cust_main/top_misc.html |    6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list