[freeside-commits] branch FREESIDE_4_BRANCH updated. 8eeafe1ef47bdd2abd72ae9254aac10b83edd4fd

Ivan ivan at 420.am
Tue Jul 21 19:17:24 PDT 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  8eeafe1ef47bdd2abd72ae9254aac10b83edd4fd (commit)
      from  a634ad8132ac08e2ce1f4c43019bfb104a8456c1 (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 8eeafe1ef47bdd2abd72ae9254aac10b83edd4fd
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Jul 21 19:17:23 2015 -0700

    self-service API contact deletion fix, RT#37375

diff --git a/FS/FS/ClientAPI/MyAccount/contact.pm b/FS/FS/ClientAPI/MyAccount/contact.pm
index 31bbb0c..ff29079 100644
--- a/FS/FS/ClientAPI/MyAccount/contact.pm
+++ b/FS/FS/ClientAPI/MyAccount/contact.pm
@@ -141,7 +141,7 @@ sub delete_contact {
   my $error = $cust_contact->delete;
   return { 'error' => $error } if $error;
 
-  unless ( $contact->cust_contact ) {
+  unless ( $contact->cust_contact || $contact->prospect_contact ) {
     $contact->delete;
   }
 

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

Summary of changes:
 FS/FS/ClientAPI/MyAccount/contact.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list