parent
283840cf91
commit
bfd286ab18
|
|
@ -74,6 +74,15 @@ class ThemeData extends Model
|
|||
|
||||
public function afterFetch()
|
||||
{
|
||||
/*
|
||||
* Repeater form fields store arrays and must be jsonable.
|
||||
*/
|
||||
foreach ($this->getFormFields() as $id => $field) {
|
||||
if (isset($field['type']) && $field['type'] == 'repeater') {
|
||||
$this->jsonable[] = $id;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Fill this model with the jsonable attributes kept in 'data'.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue