MDL-73493 reportbuilder: correct handling of empty string in filters.
authorPaul Holden <paulh@moodle.com>
Fri, 21 Jan 2022 11:27:28 +0000 (11:27 +0000)
committerPaul Holden <paulh@moodle.com>
Fri, 21 Jan 2022 15:43:01 +0000 (15:43 +0000)
commit628541b5e17dec30a1794eb7666347d785df3bb3
tree6ad5bb12d448bcd3a4d42df4afc3dc8ee8aa7035
parent3d8620854abc3ee69f73fcbc42ea4e38068dcbbc
MDL-73493 reportbuilder: correct handling of empty string in filters.

This is specifically for Oracle, which treats empty strings and NULL
in an inconsistent manner unless passed as query parameters. Increase
test coverage of the same.

Co-authored-by: Carlos Castillo <carlos.castillo@moodle.com>
reportbuilder/classes/local/filters/text.php
reportbuilder/classes/local/helpers/user_profile_fields.php
reportbuilder/tests/local/entities/user_test.php
reportbuilder/tests/local/filters/text_test.php