diff --git a/Classes/Domain/Validator/SubscriberValidator.php b/Classes/Domain/Validator/SubscriberValidator.php index 8d0efde..c04d474 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')) { diff --git a/composer.json b/composer.json index b5cf226..ea050b0 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 c156855..67ca0b2 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' => [ ],