チェックイン編集時に非公開フラグが維持されていないバグの修正

This commit is contained in:
shibafu 2020-08-23 13:02:27 +09:00
parent f301c56a1a
commit c956a96605

View File

@ -144,7 +144,7 @@ class EjaculationController extends Controller
'link' => old('link') ?? $ejaculation->link,
'tags' => $tags,
'note' => old('note') ?? $ejaculation->note,
'is_private' => is_bool(old('is_private')) ? old('is_private') : $ejaculation->note,
'is_private' => is_bool(old('is_private')) ? old('is_private') : $ejaculation->is_private,
'is_too_sensitive' => is_bool(old('is_too_sensitive')) ? old('is_too_sensitive') : $ejaculation->is_too_sensitive
],
'errors' => isset($errors) ? $errors->getMessages() : null