Fix fields extraction for form data
[MAILPOET-2754]
This commit is contained in:
committed by
Veljko V
parent
69beccf285
commit
6e33cc80e2
@ -59,7 +59,9 @@ class Form extends Model {
|
||||
&& !empty($field['body'])
|
||||
) {
|
||||
$nestedFields = $this->getFieldList($field['body']);
|
||||
if ($nestedFields) {
|
||||
$fields = array_merge($fields, $nestedFields);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -117,6 +117,15 @@ class FormTest extends \MailPoetTest {
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'column',
|
||||
'body' => [
|
||||
[
|
||||
'type' => 'divider',
|
||||
'id' => 'divider',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
|
Reference in New Issue
Block a user