Skip to content

Commit

Permalink
Fixed nested logic for lists and forms parsing (fixes #273)
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Nov 24, 2015
1 parent 34f83eb commit 13207f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Data/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function parseFormFields(array &$fields, $params, $prefix, array &$cur
$field['name'] = $prefix . $key;
$field += $params;

if (isset($field['fields']) && (!isset($field['type']) || $field['type'] !== 'list')) {
if (isset($field['fields']) && isset($field['type'])) {
// Recursively get all the nested fields.
$newParams = array_intersect_key($this->filter, $field);
$this->parseFormFields($field['fields'], $newParams, $prefix, $current[$key]['fields']);
Expand Down

0 comments on commit 13207f1

Please sign in to comment.