fix saving option values whose id is formatted as *[*]
This commit is contained in:
parent
f7159e0bbb
commit
ee5fec149e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user