When search value consists of multiple words then only last one is set as view filter value.

Im not sure what was the original intention of this code but by using only last word for filter, you get bad results.

preg_match_all('/[^, ]*$/', $search, $match);
$search = $match[0][0];
CommentFileSizeAuthor
#2 remove-regex-2780075-2.patch551 bytesnbchip

Comments

nbchip created an issue. See original summary.

nbchip’s picture

Status: Active » Needs review
StatusFileSize
new551 bytes

Comment out regex split

eme’s picture

Well, seeing the code, I cannot remember either...

If it works just fine, I can commit that to dev.

droath’s picture

Status: Needs review » Reviewed & tested by the community

This was causing issues when needing to search for multiple terms with a conjunction of "AND". As only the last value would be searched in the autocomplete.

vladimiraus’s picture

Status: Reviewed & tested by the community » Closed (outdated)

Thank you for your contributions. 🎂
Drupal 7 is no longer supported.
Masked as outdated.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.