Skip to content

Commit

Permalink
checkbox was not checked when the post was in fact published
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed May 22, 2017
1 parent 1e25c49 commit 2fb59bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/laralum/posts/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</div>

<div class="uk-margin">
<label><input class="uk-checkbox" type="checkbox" name="public" @can('publish', \Laralum\Blog\Models\Post::class) {{ old('public') ? 'checked' : $post->public}} @else disabled @endif> @lang('laralum_blog::general.public')</label>
<label><input class="uk-checkbox" type="checkbox" name="public" @can('publish', \Laralum\Blog\Models\Post::class) {{ old('public', $post->public) ? 'checked="checked"' : '' }} @else disabled @endif> @lang('laralum_blog::general.public')</label>
</div>

<div class="uk-margin">
Expand Down

0 comments on commit 2fb59bd

Please sign in to comment.