Skip to content

Commit 8473b2a

Browse files
authored
Merge pull request #2015 from opensource-workshop/2.18.3
Merge v1.18.3 into 2
2 parents 3545e2c + 395a0ee commit 8473b2a

File tree

7 files changed

+469
-70
lines changed

7 files changed

+469
-70
lines changed

app/Plugins/User/Reservations/ReservationsPlugin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ private function getColumnValue($input, $column = null, $inputs_column = null)
546546
*/
547547
public function week($request, $page_id, $frame_id, $target_ymd)
548548
{
549+
if (is_null($target_ymd)) {
550+
$target_ymd = date('Ymd');
551+
}
549552
$year = substr($target_ymd, 0, 4);
550553
$month = substr($target_ymd, 4, 2);
551554
$day = substr($target_ymd, 6, 2);
@@ -564,11 +567,13 @@ public function week($request, $page_id, $frame_id, $target_ymd)
564567
*/
565568
public function month($request, $page_id, $frame_id, $target_ym)
566569
{
570+
if (is_null($target_ym)) {
571+
$target_ym = date('Ymd');
572+
}
567573
$year = substr($target_ym, 0, 4);
568574
$month = substr($target_ym, 4, 2);
569575
$day = substr($target_ym, 6, 2);
570576
$day = empty($day) ? '01' : $day;
571-
// if (!checkdate($month, '01', $year)) {
572577
if (!checkdate($month, $day, $year)) {
573578
return $this->viewError("404_inframe", null, '日時パラメータ不正(' . $year . '/' . $month . '/' . $day . ')');
574579
}

composer-dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"laravel/ui": "^3.0",
2626
"laravelcollective/html": "^6.0",
2727
"mews/captcha": "3.3.0",
28+
"phpoffice/phpspreadsheet": "^1.12",
2829
"rlanvin/php-rrule": "^2.3",
2930
"setasign/fpdi": "^2.3",
3031
"symfony/yaml": "^5.4",

0 commit comments

Comments
 (0)