From c8f11c38d19cf93a12c884cc7bbadd88cc55641b Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Fri, 28 Oct 2022 15:48:16 +0200 Subject: [PATCH] fixed a typo --- composer.json | 2 +- src/Controller/BookingController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5430dd5..19711d0 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description":"Isotope Stock.", "type": "contao-bundle", "license":"AGPL-3.0-or-later", - "version": "1.0.10", + "version": "1.0.11", "require": { "contao/core-bundle": "^4.9", "isotope/isotope-core": "^2.6", diff --git a/src/Controller/BookingController.php b/src/Controller/BookingController.php index e09dfe6..1389b5d 100644 --- a/src/Controller/BookingController.php +++ b/src/Controller/BookingController.php @@ -190,7 +190,7 @@ public function massBooking(Request $request): Response $booking = new BookingModel(); $booking->description = $data['description']; $booking->date = $data['date']->getTimestamp(); - $booking->period = $data['period_id']->id; + $booking->period_id = $data['period_id']->id; $booking->product_id = $product->id; $booking->type = $data['type']; $booking->save();