Skip to content

Commit

Permalink
FIX handleFieldArrayList only handling first ArrayListField
Browse files Browse the repository at this point in the history
  • Loading branch information
Zauberfisch committed Nov 12, 2018
1 parent 1ef2508 commit 9ac3071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9ac3071

Please sign in to comment.