mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-71126 Quiz: Manual grading page size preference can get stuck at 0
Including in this change: - New positiveint regex rule to check if the value is a positive integer
This commit is contained in:
parent
3da88a7664
commit
46aece2b63
7 changed files with 52 additions and 7 deletions
|
@ -65,6 +65,7 @@ $GLOBALS['_HTML_QuickForm_registered_rules'] = array(
|
|||
'numeric' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
|
||||
'nopunctuation' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
|
||||
'nonzero' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
|
||||
'positiveint' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
|
||||
'callback' => array('html_quickform_rule_callback', 'HTML/QuickForm/Rule/Callback.php'),
|
||||
'compare' => array('html_quickform_rule_compare', 'HTML/QuickForm/Rule/Compare.php')
|
||||
);
|
||||
|
|
|
@ -40,7 +40,8 @@ class HTML_QuickForm_Rule_Regex extends HTML_QuickForm_Rule
|
|||
'alphanumeric' => '/^[a-zA-Z0-9]+$/',
|
||||
'numeric' => '/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/',
|
||||
'nopunctuation' => '/^[^().\/\*\^\?#!@$%+=,\"\'><~\[\]{}]+$/',
|
||||
'nonzero' => '/^-?[1-9][0-9]*/'
|
||||
'nonzero' => '/^-?[1-9][0-9]*/',
|
||||
'positiveint' => '/^[1-9]\d*$/'
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,6 +29,9 @@ MDL-70711 - removed unnecessary if-else conditional block in HTML_QuickForm as t
|
|||
condition always evaluates to false due to the deprecated get_magic_quotes_gpc()
|
||||
which always returns false
|
||||
MDL-70457 - PHP 7.4 curly brackets string access fix.
|
||||
MDL-71126 - Quiz: Manual grading page size preference can get stuck at 0
|
||||
Including in this change:
|
||||
- New positiveint regex rule to check if the value is a positive integer
|
||||
|
||||
Pear
|
||||
====
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue