Fixing issue with FieldGroup and its __clone() method not properly setting the parent.
This commit is contained in:
parent
0b378d1b3e
commit
c1d0262c19
@ -57,8 +57,11 @@ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterfac
|
|||||||
*/
|
*/
|
||||||
public function __clone()
|
public function __clone()
|
||||||
{
|
{
|
||||||
foreach ($this->fields as $name => $field) {
|
foreach ($this->fields as $name => $field)
|
||||||
$this->fields[$name] = clone $field;
|
{
|
||||||
|
$field = clone $field;
|
||||||
|
$field->setParent($this);
|
||||||
|
$this->fields[$name] = $field;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user