Skip to content

Commit cd17545

Browse files
authored
Merge pull request #641 from rudiedirkx/collection-postback-prefer-input
improves collection formatInputIntoModels() during postback
2 parents 538ed8d + d570548 commit cd17545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kris/LaravelFormBuilder/Fields/CollectionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function createChildren()
101101
}
102102
// Or if the current request input is preferred over original data.
103103
elseif ($this->getOption('prefer_input') && count($currentInput)) {
104-
$data = $currentInput;
104+
$data = $this->formatInputIntoModels($currentInput, $data);
105105
}
106106

107107
if ($data instanceof Collection) {

0 commit comments

Comments
 (0)