allow setting variable options to "0", closes #87
This commit is contained in:
parent
812b869be8
commit
d9f1a7faf7
2 changed files with 8 additions and 4 deletions
|
@ -181,7 +181,11 @@ class ServiceController extends Controller
|
|||
|
||||
// Because of the way old() works on the display side we prefix all of the variables with thier ID
|
||||
// We need to remove that prefix here since the repo doesn't want it.
|
||||
$data = [];
|
||||
$data = [
|
||||
'user_viewable' => '0',
|
||||
'user_editable' => '0',
|
||||
'required' => '0'
|
||||
];
|
||||
foreach($request->except(['_token']) as $id => $val) {
|
||||
$data[str_replace($variable.'_', '', $id)] = $val;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue