mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #1195 from krisawzm/themedata-repeater-patch
Fixes #1194
This commit is contained in:
commit
f9bb79eacc
@ -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…
x
Reference in New Issue
Block a user