MDL-70935 mod_quiz: combine 'pass' and 'attemptsexhausted' rules
commite5ac4fd1d98861eecd6981236ff39aca60dafe8e
authorShamim Rezaie <shamim@moodle.com>
Wed, 24 Mar 2021 18:57:19 +0000 (25 05:57 +1100)
committerMichael Hawkins <michaelh@moodle.com>
Wed, 7 Apr 2021 07:12:34 +0000 (7 15:12 +0800)
treed5d685ffaec4ff36543a1986b923489b7fc6f645
parent1ef67caf2ce9b5a17befe0a6d56e4ac6313644aa
MDL-70935 mod_quiz: combine 'pass' and 'attemptsexhausted' rules

Custom rules are combined using the AND operator. However, the
'completionpass' and 'completionattemptsexhausted' rules are exceptions
because they are combined together with OR, and form a single new rule
that then will be combined with the rest of the rules using AND.
This commit combines the mentioned rules into a single rule named
'completionpassorattemptsexhausted'.
mod/quiz/lang/en/quiz.php
mod/quiz/lib.php
mod/quiz/tests/lib_test.php