Fix fields extraction for form data

[MAILPOET-2754]
This commit is contained in:
Rostislav Wolny
2020-03-11 14:47:14 +01:00
committed by Veljko V
parent 69beccf285
commit 6e33cc80e2
2 changed files with 12 additions and 1 deletions

View File

@ -59,7 +59,9 @@ class Form extends Model {
&& !empty($field['body'])
) {
$nestedFields = $this->getFieldList($field['body']);
if ($nestedFields) {
$fields = array_merge($fields, $nestedFields);
}
continue;
}

View File

@ -117,6 +117,15 @@ class FormTest extends \MailPoetTest {
],
],
],
[
'type' => 'column',
'body' => [
[
'type' => 'divider',
'id' => 'divider',
],
],
],
],
],
[