Removed old input checks on entity permission checkboxes
Old input check potentialy causing issues (#89) and is not needed on the pages which it shows.
Showing
1 changed file
with
1 additions
and
2 deletions
| 1 | 1 | ||
| 2 | <label> | 2 | <label> |
| 3 | <input value="true" id="{{$name}}[{{$role->id}}][{{$action}}]" type="checkbox" name="{{$name}}[{{$role->id}}][{{$action}}]" | 3 | <input value="true" id="{{$name}}[{{$role->id}}][{{$action}}]" type="checkbox" name="{{$name}}[{{$role->id}}][{{$action}}]" |
| 4 | - @if(old($name .'.'.$role->id.'.'.$action) || (!old() && isset($model) && $model->hasRestriction($role->id, $action))) checked="checked" @endif | 4 | + @if(isset($model) && $model->hasRestriction($role->id, $action)) checked="checked" @endif> |
| 5 | - > | ||
| 6 | {{ $label }} | 5 | {{ $label }} |
| 7 | </label> | 6 | </label> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment