-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
3.0
Currently criteria passed to the external function core_user_get_users are concatenated together using AND; kind of like:
give me users that haven't been deleted AND criteria1 AND criteria2
|
Unfortunately, there are some cases where you'll want to do a query with an OR, e.g.
give me users that haven't been deleted AND ( criteria2 OR criteria2 )
|
This patch makes the external function in question accessible from core/ajax and introduces a new optional parameter, mode, which can have two values:
- 'strict': group criteria using AND, which is extant behavior)
- 'loose': group criteria using OR
As the parameter is optional (and defaults to extant behavior), existing uses of the function do not need to be updated - the previous calling convention can be used.
- will help resolve
-
MDL-50485 New mustache-powered search select box
-
- Closed
-