Skip to content

Commit 7a4299c

Browse files
committed
Reassignable should default to true on create form
1 parent b9b0239 commit 7a4299c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/views/backend/licenses/edit.blade.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484
</div>
8585
</div>
8686

87-
<!-- Reassignable -->
88-
<div class="form-group {{ $errors->has('reassignable') ? ' has-error' : '' }}">
89-
<label for="reassignable" class="col-md-3 control-label">@lang('admin/licenses/form.reassignable')</label>
90-
<div class="col-md-7 input-group">
91-
{{ Form::Checkbox('reassignable', '1', Input::old('reassignable', $license->reassignable)) }}
92-
@lang('general.yes')
93-
</div>
94-
</div>
87+
<!-- Reassignable -->
88+
<div class="form-group {{ $errors->has('reassignable') ? ' has-error' : '' }}">
89+
<label for="reassignable" class="col-md-3 control-label">@lang('admin/licenses/form.reassignable')</label>
90+
<div class="col-md-7 input-group">
91+
{{ Form::Checkbox('reassignable', '1', Input::old('reassignable', $license->id ? $license->reassignable : '1')) }}
92+
@lang('general.yes')
93+
</div>
94+
</div>
9595

9696
<!-- Supplier -->
9797
<div class="form-group {{ $errors->has('supplier_id') ? ' has-error' : '' }}">

0 commit comments

Comments
 (0)