Browse Source

fix checkbox not sending empty value

pull/11/head
KodeStar 7 years ago
parent
commit
5f8ce757ed
  1. 1
      resources/views/items/form.blade.php

1
resources/views/items/form.blade.php

@ -44,6 +44,7 @@
if(isset($item->pinned) && (bool)$item->pinned === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
{!! Form::hidden('pinned', '0') !!}
<input type="checkbox" name="pinned" value="1"<?php echo $set_checked;?> />
<span class="slider round"></span>
</label>

Loading…
Cancel
Save