Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.12.3
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Make sure email verification is disabled
- Create a client
- Create an addition contact for the client
- Log in as the client
- Go to edit the contact
- See fatal error
Trying to get property 'contact_id' of non-object on line 220 in app\controllers\client_contacts.php
You can fix it by changing line 217 to:
if (($email_verification = $this->EmailVerifications->getByContactId($contact->id))) {
And adding the closing bracket after the call to setMessage()