Permalink
Browse files

Merge branch 'MDL-34008_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents 9db56e5 + dd613b6 commit eb8509c5c3246b85811cd85985a2312599a30981 @danpoltawski danpoltawski committed Jul 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/formslib.php
View
@@ -933,6 +933,9 @@ function repeat_elements_fix_clone($i, $elementclone, &$namecloned) {
$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));

0 comments on commit eb8509c

Please sign in to comment.