[freeside-commits] branch master updated. ec2f19b4484371dff04ec4a5313c7b7d2359cca8
Ivan
ivan at 420.am
Tue Jul 21 19:17:22 PDT 2015
The branch, master has been updated
via ec2f19b4484371dff04ec4a5313c7b7d2359cca8 (commit)
from c39d6e73a98427d653e3d019aaa90f16bc1b6380 (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 ec2f19b4484371dff04ec4a5313c7b7d2359cca8
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jul 21 19:17:21 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