[freeside-commits] branch FREESIDE_4_BRANCH updated. 38531b29823302833ef014eccab5a2949f5e7163
Ivan
ivan at 420.am
Tue Mar 21 14:12:40 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 38531b29823302833ef014eccab5a2949f5e7163 (commit)
from e4e8c87df94c2d12514b22f6fd677c602ebb13ab (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 38531b29823302833ef014eccab5a2949f5e7163
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Mar 21 14:12:39 2017 -0700
fix self-service contact logins, RT#74798
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index e49f6df..9c83338 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -772,8 +772,13 @@ sub by_selfservice_email {
'table' => 'contact_email',
'addl_from' => ' LEFT JOIN contact USING ( contactnum ) ',
'hashref' => { 'emailaddress' => $email, },
- 'extra_sql' => " AND ( contact.disabled IS NULL ) ".
- " AND ( contact.selfservice_access = 'Y' )",
+ 'extra_sql' => "
+ AND ( contact.disabled IS NULL )
+ AND EXISTS ( SELECT 1 FROM cust_contact
+ WHERE contact.contactnum = cust_contact.contactnum
+ AND cust_contact.selfservice_access = 'Y'
+ )
+ ",
}) or return '';
$contact_email->contact;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/contact.pm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list