fix checkbox not sending empty value
This commit is contained in:
parent
422d0bee9a
commit
5f8ce757ed
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue