-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core#1805: Autocomplete-select custom field is not searchable #17569
Conversation
(Standard links)
|
I think this looks OK if an r-run passes - one thing to check is that a smart group based on this reloads OK |
Thanks for pointing that out. I will mention the test result shortly with smart group. |
CRM/Custom/Form/Field.php
Outdated
@@ -748,6 +748,10 @@ public static function formRule($fields, $files, $self) { | |||
$errors['option_value[' . $nextIndex . ']'] = ts('Duplicate Option values'); | |||
$_flagOption = 1; | |||
} | |||
if (strpos($fields['option_value'][$start], ',') != FALSE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me wonder if we need to have a status check or something as well alerting if people have any already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For existing optionValue's value, with comma will won't work for 'Autocomplete Select' custom field as a filter, but doesn't affect another widget type (as a filter) like checkbox. But yeah it would be nice to inform user about this change, on status page, something like 'Use of "," is no longer supported in optionvalue for mult-select custom fields esp. for 'Autocomplete Select' widget'
|
||
$customField = $this->customFieldCreate($fields); | ||
|
||
$custom = 'custom_' . $customField['id']; | ||
$params = [ | ||
'email' => 'abc@webaccess.co.in', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove webaccess as historical cruft and update this to 'test@example.com'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
jenkins test this please |
Tested and this works as expected. |
test this please |
This was only pending r-run so MOP now @lcdservices has done so |
unrelated fail |
Overview
Steps to replicate:
Before
After
Technical Details
This patch introduces two improvement and the fix for the current issue, depends on it:
CRM_Core_BAO_CustomValue::fixCustomFieldValue
insideCRM_Contact_BAO_Query::convertFormValues(...)
and its safe for two reason:Comments
ping @eileenmcnaughton @seamuslee001 @JoeMurray @lcdservices