Skip to content

CheckProductAvailabilityEvent->addMessage() broken #750

Description

@kitzberger

Bug Report

Current Behavior

It's causing an exception when adding a flashmessage via CheckProductAvailabilityEvent->addMessage().

It's due to the fact that Cart/CartController->updateAction() is serializing the message and then passing on the severity parameter as integer.

TypeError
TYPO3\CMS\Extbase\Mvc\Controller\ActionController::addFlashMessage(): Argument #3 ($severity) must be of type TYPO3\CMS\Core\Type\ContextualFeedbackSeverity, int given, called in /var/www/html/vendor/extcode/cart/Classes/Controller/Cart/CartController.php on line 161

Expected behavior/output
No exception obviously ;-)

Environment

  • TYPO3 version(s): 13
  • cart version: 11.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions