Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.8.1
-
Fix Version/s: 5.8.2
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Create a secondary contact without a login
- Try to delete
- Get a success message but see that the contact is not deleted
To resolve:
In app/models/contacts.php around line 441 change
$this->Record->from('contacts')
->leftJoin('contact_numbers', 'contact_numbers.contact_id', '=', 'contacts.id', false)
->leftJoin('contact_permissions', 'contact_permissions.contact_id', '=', 'contacts.id', false)
->leftJoin('email_verifications', 'email_verifications.contact_id', '=', 'contacts.id', false)
->where('contacts.id', '=', $contact_id)
->where('contact_permissions.client_id', '=', $contact->client_id)
->delete(['contacts.*', 'contact_numbers.*', 'contact_permissions.*', 'email_verifications.*']);
To
$this->Record->from('contacts')
->leftJoin('contact_numbers', 'contact_numbers.contact_id', '=', 'contacts.id', false)
->on('contact_permissions.client_id', '=', $contact->client_id)
->leftJoin('contact_permissions', 'contact_permissions.contact_id', '=', 'contacts.id', false)
->leftJoin('email_verifications', 'email_verifications.contact_id', '=', 'contacts.id', false)
->where('contacts.id', '=', $contact_id)
->delete(['contacts.*', 'contact_numbers.*', 'contact_permissions.*', 'email_verifications.*']);
Activity
| Field | Original Value | New Value |
|---|---|---|
| Sprint | 5.9.0 Sprint 1 [ 182 ] |
| Rank | Ranked higher |
| Assignee | Jonathan Reissmueller [ jonathan ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Sprint | 5.9.0 Sprint 1 [ 182 ] | 5.9.0 Sprint 1, 5.9.0 Sprint 2 [ 182, 183 ] |
| Rank | Ranked higher |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 7 minutes [ 420 ] | |
| Worklog Id | 16564 [ 16564 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |