fix saving option values whose id is formatted as *[*]

This commit is contained in:
printempw 2016-12-31 14:05:55 +08:00
parent f7159e0bbb
commit ee5fec149e

View File

@ -219,8 +219,10 @@ class OptionForm
// Str::is('*[*]', $item->id)
if (false !== ($result = $this->parseIdWithOffset($item->id))) {
// push array option value to cache
$arrayOptionQueue[$result['id']][$result['offset']] = $_POST[$item->id];
// Push array option value to cache.
// Values of post ids like *[*] is collected as arrays in $_POST
// automatically by Laravel.
$arrayOptionQueue[$result['id']] = $_POST[$result['id']];
continue;
}