[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 2487e70d1fa40cdfa2a8d0eca1bcc3ca9d1170cc

Mark Wells mark at 420.am
Mon Apr 29 23:55:53 PDT 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  2487e70d1fa40cdfa2a8d0eca1bcc3ca9d1170cc (commit)
      from  59c3510741fabaa79f3007202f2ec314cdd2761b (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 2487e70d1fa40cdfa2a8d0eca1bcc3ca9d1170cc
Author: Mark Wells <mark at freeside.biz>
Date:   Mon Apr 29 23:53:20 2013 -0700

    allow selfservice to remove service address, #20716

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index be87e59..d946a62 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -704,6 +704,14 @@ sub edit_info {
   $new->set( $_ => $p->{$_} )
     foreach grep { exists $p->{$_} } @cust_main_editable_fields;
 
+  if ( $new->ship_address1 eq '' ) {
+    # then the ship address is being set to null
+    $new->set($_ => '') 
+      foreach qw(ship_longitude ship_latitude ship_coord_auto ship_mobile);
+  }
+
+
+
   my $payby = '';
   if (exists($p->{'payby'})) {
     $p->{'payby'} =~ /^([A-Z]{4})$/

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

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list