From 9ac3071da83117c1d262fe29b60f0666e6454490 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Mon, 12 Nov 2018 12:01:22 +0000 Subject: [PATCH] FIX handleFieldArrayList only handling first ArrayListField --- src/Form/FormExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/FormExtension.php b/src/Form/FormExtension.php index 8100547..83645ad 100644 --- a/src/Form/FormExtension.php +++ b/src/Form/FormExtension.php @@ -23,7 +23,7 @@ public function handleFieldArrayList($request) { foreach ($this->owner->Fields()->dataFields() as $dataField) { /** @var \FormField|ArrayListField $dataField */ if ($dataField->is_a(ArrayListField::class)) { - if (strpos($fieldName, $dataField->getName()) == 0) { + if (strpos($fieldName, $dataField->getName()) === 0) { $field = $dataField->handleSubField($fieldName); break; }