Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.6.0-b1
-
Component/s: None
-
Labels:None
Description
CORE-3123 created teh 'unique_contact_emails' setting. However, if it has not been defined for the company yet, attempting to create a contact will fail with an error:
Undefined index 'value' on line 1024 of /app/models/contacts.php
When fetching a single client setting via the SettingsCollection, the result is automatically cast to an array, therefore, it becomes [0 => false].
- Update the contact validation rule to ensure that the contact setting is set and has the key 'value'.
- Update the contact validation rule to only check contacts in the client's company. The same email address can be set for contacts that belong to other companies
Issue Links
- Discovered while testing
-
CORE-3123 Add company setting to make contact email addresses unique
- Closed
Activity
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Sprint | 4.6.0 beta Sprint 1 [ 86 ] |
Tyson Phillips (Inactive)
made changes -
Tyson Phillips (Inactive)
made changes -
Description |
{quote} Undefined index 'value' on line 1024 of /app/models/contacts.php {quote} When fetching a single client setting via the SettingsCollection, the result is automatically cast to an array, therefore, it becomes [0 => false]. # Update the contact validation rule to ensure that the contact setting is set and has the key 'value'. |
{quote} Undefined index 'value' on line 1024 of /app/models/contacts.php {quote} When fetching a single client setting via the SettingsCollection, the result is automatically cast to an array, therefore, it becomes [0 => false]. # Update the contact validation rule to ensure that the contact setting is set and has the key 'value'. # Update the contact validation rule to only check contacts in the client's company. The same email address can be set for contacts that belong to other companies |
Tyson Phillips (Inactive)
made changes -
Fix Version/s | 4.6.0-b1 [ 11117 ] |
Tyson Phillips (Inactive)
made changes -
Assignee | Tyson Phillips [ tyson ] |
Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
Status | Open [ 1 ] | In Progress [ 3 ] |
Automated transition triggered when Tyson Phillips (Inactive) created pull request #673 in Stash -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Tyson Phillips (Inactive)
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 1 hour, 11 minutes [ 4260 ] | |
Worklog Id | 12279 [ 12279 ] |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #673 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |