Skip to content

Commit

Permalink
Use setName() to capture any changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Feb 10, 2020
1 parent a3b68e1 commit 454f8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ManyField.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ protected function updateManyNestedField($field, $index, $value, $prefixName) {
$c = $this->updateManyNestedField($c, $index, $value, false);

if ($prefixName) {
$c->name = $this->name . '['.$field->name . ']['. $index . ']['. $c->name.']';
$c->setName($this->name . '['.$field->name . ']['. $index . ']['. $c->name.']');
}
}
} else {
Expand All @@ -621,7 +621,7 @@ protected function updateManyNestedField($field, $index, $value, $prefixName) {
}

if ($prefixName) {
$field->name = $this->name . '['.$field->name . ']['. $index . ']';
$field->setName($this->name . '['.$field->name . ']['. $index . ']');
}
}

Expand Down

0 comments on commit 454f8b1

Please sign in to comment.