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