mform rangelength rule error string

mform rangelength rule error string

by Itamar Tzadok -
Number of replies: 0

Has anyone used the rangelength rule in moodle form?

The rule expects array($min, $max) but the lang string for the validation error message is defined:

$string['err_rangelength'] = 'You must enter between {$a->format[0]} and {$a->format[1]} characters here.';

which is not only incompatible with what the rule expects but afacit also with get_string.

smile

 

Average of ratings: -