Merge branch 'MDL-34008' of git://github.com/timhunt/moodle
This commit is contained in:
@@ -944,6 +944,9 @@ abstract class moodleform {
|
||||
$value = $elementclone->_text;
|
||||
$elementclone->setValue(str_replace('{no}', ($i+1), $value));
|
||||
|
||||
} else if (is_a($elementclone, 'HTML_QuickForm_submit') || is_a($elementclone, 'HTML_QuickForm_button')) {
|
||||
$elementclone->setValue(str_replace('{no}', ($i+1), $elementclone->getValue()));
|
||||
|
||||
} else {
|
||||
$value=$elementclone->getLabel();
|
||||
$elementclone->setLabel(str_replace('{no}', ($i+1), $value));
|
||||
|
||||
Reference in New Issue
Block a user