Skip to content

Commit

Permalink
Removed old input checks on entity permission checkboxes
Browse files Browse the repository at this point in the history
Old input check potentialy causing issues (#89) and is not needed on the pages which it shows.
  • Loading branch information
ssddanbrown committed Apr 3, 2016
1 parent e9b596d commit 412eed1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/views/form/restriction-checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

<label>
<input value="true" id="{{$name}}[{{$role->id}}][{{$action}}]" type="checkbox" name="{{$name}}[{{$role->id}}][{{$action}}]"
@if(old($name .'.'.$role->id.'.'.$action) || (!old() && isset($model) && $model->hasRestriction($role->id, $action))) checked="checked" @endif
>
@if(isset($model) && $model->hasRestriction($role->id, $action)) checked="checked" @endif>
{{ $label }}
</label>

0 comments on commit 412eed1

Please sign in to comment.