Skip to content

Commit afbeec7

Browse files
authored
Merge pull request #2200 from opensource-workshop/OW-2575
[施設予約] 繰り返し予約後、特定操作で500エラーになる
2 parents af4d495 + 12a1089 commit afbeec7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Plugins/User/Reservations/ReservationsPlugin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,6 +1916,11 @@ private function updateParentId(int $input_id, int $facility_id) : void
19161916
->orderBy('start_datetime', 'asc')
19171917
->first();
19181918

1919+
// 親ID以外で一番若い日がいない($input_earliest = null)場合、繰り返しも残っていないことになるので、何もしない。
1920+
if (is_null($input_earliest)) {
1921+
return;
1922+
}
1923+
19191924
// 親ID更新
19201925
ReservationsInput::where('id', '!=', $input_id)
19211926
->where('inputs_parent_id', $input_id)

0 commit comments

Comments
 (0)