isotope / core

Core repository of Isotope eCommerce, an eCommerce extension for Contao Open Source CMS
https://isotopeecommerce.org
136 stars 107 forks source link

Fix warning when using the published toggler for payment methods #2524

Closed fritzmg closed 4 months ago

fritzmg commented 5 months ago

If you use the toggle button in the payment method listing, the following error will occur in debug mode:

ErrorException:
Warning: Undefined array key "save_callback"

  at vendor\isotope\isotope-core\system\modules\isotope\library\Isotope\Backend\Payment\Callback.php:255
  at Isotope\Backend\Payment\Callback->toggleVisibility()
     (vendor\isotope\isotope-core\system\modules\isotope\library\Isotope\Backend\Payment\Callback.php:215)
  at Isotope\Backend\Payment\Callback->toggleIcon()
     (vendor\contao\core-bundle\src\Resources\contao\classes\DataContainer.php:938)
  at Contao\DataContainer->generateButtons()
     (vendor\contao\core-bundle\src\Resources\contao\drivers\DC_Table.php:5121)
  at Contao\DC_Table->listView()
     (vendor\contao\core-bundle\src\Resources\contao\drivers\DC_Table.php:313)
  at Contao\DC_Table->showAll()
     (vendor\isotope\isotope-core\system\modules\isotope\library\Isotope\BackendModule\BackendOverview.php:245)
  at Isotope\BackendModule\BackendOverview->getModule()
     (vendor\isotope\isotope-core\system\modules\isotope\library\Isotope\BackendModule\BackendOverview.php:84)
  at Isotope\BackendModule\BackendOverview->generate()
     (vendor\contao\core-bundle\src\Resources\contao\classes\Backend.php:439)
  at Contao\Backend->getBackendModule()
     (vendor\contao\core-bundle\src\Resources\contao\controllers\BackendMain.php:168)
  at Contao\BackendMain->run()
     (vendor\contao\core-bundle\src\Controller\BackendController.php:49)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor\symfony\http-kernel\HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor\symfony\http-kernel\HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor\symfony\http-kernel\Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public\index.php:44)           
aschempp commented 4 months ago

Thank you @fritzmg