チェックイン修正時のバリデーションエラーで新規作成に飛ばされてしまうバグの修正 (#44)

refs #34
This commit is contained in:
shibafu 2019-01-17 01:01:42 +09:00 committed by GitHub
parent b04f167709
commit 3a1dc72cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ class EjaculationController extends Controller
});
if ($validator->fails()) {
return redirect()->route('checkin')->withErrors($validator)->withInput();
return redirect()->route('checkin.edit', ['id' => $id])->withErrors($validator)->withInput();
}
$ejaculation->fill([