[Form] Add new fields in CollectionField::setData()
This commit is contained in:
parent
57c0ce0ec1
commit
77602239a4
@ -61,6 +61,10 @@ class CollectionField extends FieldGroup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($collection as $name => $value) {
|
||||||
|
$this->add($this->newField($name, $name));
|
||||||
|
}
|
||||||
|
|
||||||
parent::setData($collection);
|
parent::setData($collection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user