[施設予約] 「重複予約を許可しない」設定にしていても、予約の終了時間を「24:00」にすると重複して予約ができてしまう不具合対応 #2202
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
施設予約で「重複予約を許可しない」設定にしていても、予約の終了時間を「24:00」にすると重複して予約ができてしまう不具合がありましたので、重複予約チェックを修正しました。
不具合詳細
※ 終了時間の24:00表示は、施設予約特有の表示で、変換して表示しています。
システム上では
2025-05-30 24:00
はイレギュラーな値で、CarbonやDBのdatetime型ですと、正しい値は 翌日の0時2025-05-31 00:00
になります。2025-05-30 24:00
のイレギュラーな値で、予約重複チェックを行ったため、うまくチェックが働きませんでした。対応
2025-05-30 24:00
等の24:00がきた場合、正しい値の 翌日の0時2025-05-31 00:00
に変換してチェックするよう対応しました。レビュー完了希望日
5/30(金)
修正後画面
(参考) 施設管理>施設変更(重複予約=許可しない)
(参考) 施設予約>初期表示(05-30 14:00-17:00予定あり)
施設予約>予約(05-30 12:00-24:00予定を登録で、重複予約エラーが出ることを確認しました)
簡易テスト
関連Pull requests/Issues
なし
参考
なし
DB変更の有無
無し
チェックリスト