From 51504b9119f2f97625e48cd6a931405d155e29ee Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Sat, 27 Feb 2021 23:04:01 +0100 Subject: [PATCH 1/2] Rise version constraints and version number --- composer.json | 2 +- ext_emconf.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b5cf226e..ea050b0f 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "license": "GPL-3.0-or-later", "require": { - "typo3/cms-core": "~9.5.20|~10.4.6" + "typo3/cms-core": "~9.5.24|~10.4.12" }, "autoload": { "psr-4": { diff --git a/ext_emconf.php b/ext_emconf.php index c1568551..67ca0b2f 100755 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -28,10 +28,10 @@ 'modify_tables' => '', 'clearCacheOnLoad' => 0, 'lockType' => '', - 'version' => '5.0.1', + 'version' => '5.0.2', 'constraints' => [ 'depends' => [ - 'typo3' => '9.5.0-10.4.99', + 'typo3' => '9.5.24-10.4.99', ], 'conflicts' => [ ], From cbcf3e0bd9198a613ea8482f3b1c2d451d2601fb Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Sat, 27 Feb 2021 23:16:22 +0100 Subject: [PATCH 2/2] Remove check for valid subscriber in SubsriberValidator. This is double checked as the following EventSubscriptionAllowedValidator already checks for overbooking. --- Classes/Domain/Validator/SubscriberValidator.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Classes/Domain/Validator/SubscriberValidator.php b/Classes/Domain/Validator/SubscriberValidator.php index 8d0efdea..c04d4749 100755 --- a/Classes/Domain/Validator/SubscriberValidator.php +++ b/Classes/Domain/Validator/SubscriberValidator.php @@ -116,13 +116,6 @@ public function isValid($newSubscriber) ) { $this->addError('val_number', 1120); $this->isValid = false; - } else { - $event = $newSubscriber->getEvent(); - // limit reached already --> overbooked - if ($this->subscriberRepository->countAllByEvent($event) + $newSubscriber->getNumber() > $event->getMaxSubscriber()) { - $this->addError('val_number', 1130); - $this->isValid = false; - } } $currentSessionData = $this->getSessionData('editcode'); if ($newSubscriber->getEditcode() != $this->getSessionData('editcode')) {