Support for lastnames with spaces in user autocompleters
|Assignee:||Go MAEDA||% Done:|
The user autocompleter, e.g. in the watcher or project membership UIs, doesn't handle last names with spaces well. E.g. a user with
firstname "Leonardo" and
lastname "da Vinci" would not be found, when searching for "Leonardo da Vinci".
The reason is that the search term will be split into "Leonardo da" and "Vinci" and "Leonardo da" will not be found in any database column.
The attached patch changes the
Principal.like scope, so that the search term is split at any white space.