Skip to content
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

Trim form values when adding LIKE operator #15275

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fix a 5.17 regression whereby the email string is no longer being trimmed when searching

Before

'[email protected]' works

After

'[email protected] ' doesn't work

Technical Details

The form layer seems like the right place to trim & it makes sense to be generic when adding 'LIKE'

Comments

This is more consistent with previous behaviour - ie '[email protected]' AND '[email protected] ' should work.
@civibot
Copy link

civibot bot commented Sep 11, 2019

(Standard links)

@civibot civibot bot added the 5.18 label Sep 11, 2019
@seamuslee001
Copy link
Contributor

Yeh makes sense IMO adding MOP as i'm sure we have tests

@eileenmcnaughton eileenmcnaughton merged commit 2fe01df into civicrm:5.18 Sep 11, 2019
@eileenmcnaughton eileenmcnaughton deleted the email branch September 11, 2019 03:07
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Jan 7, 2020
civicrm#15275

Bug: T232532
Change-Id: Id98f0956769a87d64345e2bac18777e7113ad1fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants