silverstripe-admin icon indicating copy to clipboard operation
silverstripe-admin copied to clipboard

Searching in DropdownField doesn't work on second word in string

Open robbieaverill opened this issue 5 years ago • 0 comments

Version: 4.3.x-dev

With tractorcow/silverstripe-fluent 4.2.x-dev

Description

When trying to filter the results in a DropdownField, string matching seems to only work on the first word.

Steps to reproduce

  • Install fluent
  • Go to create a new Locale
  • Type "Australia" into the locale dropdown

Expected

  • "English (Australia)" should appear as a filtered option

Actual

  • No results

This can also be reproduced with "German" as the search term, where I'd expect Swiss German to show up as an option, but only strings starting with German are shown

image image

robbieaverill avatar Sep 25 '18 10:09 robbieaverill