Skip to content
Browse files

MDL-16842 "Adding group of elements in function lib/formslib.php/repe…

…at_elements() not working correctly" Fixed using fullclone instead of clone now. Merged from 1.9 stable.
  • Loading branch information...
1 parent b7e6e7a commit e073353ff2a35a273ef04c2d34da55151e278eda jamiesensei committed Oct 13, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formslib.php
View
2 lib/formslib.php
@@ -468,7 +468,7 @@ function repeat_elements($elementobjs, $repeats, $options, $repeathiddenname,
$mform->setConstants(array($repeathiddenname=>$repeats));
for ($i=0; $i<$repeats; $i++) {
foreach ($elementobjs as $elementobj){
- $elementclone = clone($elementobj);
+ $elementclone = fullclone($elementobj);
$name = $elementclone->getName();
if (!empty($name)){
$elementclone->setName($name."[$i]");

0 comments on commit e073353

Please sign in to comment.
Something went wrong with that request. Please try again.