mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
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:
parent
71965a8572
commit
3f069a2c48
2 changed files with 10 additions and 4 deletions
|
@ -41,8 +41,11 @@ use Iterator;
|
|||
*/
|
||||
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 */
|
||||
const JOINTYPE_NONE = 0;
|
||||
|
|
|
@ -40,8 +40,11 @@ use moodle_exception;
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
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 */
|
||||
const JOINTYPE_NONE = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue