-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CRM-19048 - Additional fix #9374
Conversation
b196895
to
408fe09
Compare
test this please |
Nice updates to the unit tests. :) |
$csid = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', 'CRM_Contact_Form_Search_Custom_FullText', 'value', 'name'); | ||
$url = CRM_Utils_System::url("civicrm/contact/search/custom", "csid={$csid}&reset=1"); | ||
$operators = implode("', '", $operators); | ||
CRM_Core_Error::statusBounce("Full-Text Search does not support the use of a search string ending with any of these operators ('{$operators}' or a single '@'). Please adjust your search term and try again.", $url); |
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.
In the string with any of these operators ('{$operators}' or a single '@').
, how would that display? e.g.
with any of these operators('Array' or a single '@').
with any of these operators('+-~()' or a single '@').
with any of these operators('+ - ~ ( )' or a single '@').
with any of these operators('+, -, ~, (, )' or a single '@').
Feel like it would be the first one (problematic) -- but any of the others would be fine.
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.
@totten Here, implode will join the array values with ', '
and '{$operators}'
are enclosed within single quotes. So message would be displayed as with any of these operators ('+', '-', '~', '(', ')' or a single '@').
@totten If the changes seems fine, is this ok to be merged ? |
merging as per Brian's comments on the issue |
This works for following text searches.
@domain.com
works and returns result containing@domain.com
and not@domain.org
.some@
works fine.@
,+-
,some+
, etc as mentioned in the doc file.