Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CurrencyController has no method editAction as configured in ext_localconf.php #434

Open
rintisch opened this issue Dec 16, 2023 · 0 comments
Labels
9.x related to TYPO3 v12 bug

Comments

@rintisch
Copy link
Collaborator

Bug Report

Current Behavior
Using the plugin "Cart: Currency Selector" throws the error TYPO3\CMS\Extbase\Mvc\Exception\NoSuchActionException
with the detailed information

"An action "editAction" does not exist in controller "Extcode\Cart\Controller\Cart\CurrencyController"."

Expected behavior/output
No error shall occur

Environment

  • TYPO3 version(s): 12.4
  • cart version: 9.x-dev
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: running in ddev

Possible Solution
Implement the method editAction in the CurrencyController.

public function editAction(): ResponseInterface
    {
        $this->restoreSession();
        $this->view->assign('cart', $this->cart);
        return $this->htmlResponse();
    }

It will still not work because

  • the form works at the moment with AJAX
  • so the result will not be displayed because the form calls updateAction
  • so the AJAX response returns with field which do not exist at the moment in the template.
  • The JS tries to replace existing element with the updated elements but that does not work here because there are no original elements which could be replaced.

What was the idea? How is it intended to work?

@rintisch rintisch added 9.x related to TYPO3 v12 bug labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.x related to TYPO3 v12 bug
Projects
None yet
Development

No branches or pull requests

1 participant