MDL-68348 lib: Default filters to match ALL for backwards compatibility

Temporarily defaulting filtersets and their filters to join type ALL
for backwards compatibility, so the existing participants unified
filter continues to function consistently. This will be reverted once
the new participants filter UI replaces the existing unified filter.
This commit is contained in:
Michael Hawkins 2020-05-20 16:58:41 +08:00
parent 71965a8572
commit 3f069a2c48
2 changed files with 10 additions and 4 deletions

View file

@ -41,8 +41,11 @@ use Iterator;
*/ */
class filter implements Countable, Iterator, JsonSerializable { class filter implements Countable, Iterator, JsonSerializable {
/** @var in The default filter type (ANY) */ /**
const JOINTYPE_DEFAULT = 1; * @var in The default filter type (ALL)
* Note: This is for backwards compatibility with the old UI behaviour and will be set to JOINTYPE_ANY as part of MDL-68612.
*/
const JOINTYPE_DEFAULT = 2;
/** @var int None of the following match */ /** @var int None of the following match */
const JOINTYPE_NONE = 0; const JOINTYPE_NONE = 0;

View file

@ -40,8 +40,11 @@ use moodle_exception;
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
abstract class filterset implements JsonSerializable { abstract class filterset implements JsonSerializable {
/** @var in The default filter type (ANY) */ /**
const JOINTYPE_DEFAULT = 1; * @var in The default filter type (ALL)
* Note: This is for backwards compatibility with the old UI behaviour and will be set to JOINTYPE_ANY as part of MDL-68612.
*/
const JOINTYPE_DEFAULT = 2;
/** @var int None of the following match */ /** @var int None of the following match */
const JOINTYPE_NONE = 0; const JOINTYPE_NONE = 0;