View Issue Details

IDProjectCategoryView StatusLast Update
0007079OXID eShop (all versions)2.3. Extensions (modules, themes)public2020-02-03 11:30
Reportermichael_keiluweit 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version6.2.0-rc.1 
Target VersionFixed in Version 
Summary0007079: Module event information is saved repeatedly to oxconfig.aModuleEvents
DescriptionWhen reactivating a module which has events, the event information for that module will be written to the config field oxconfig.aModuleEvents, although the information was already saved.
Steps To Reproduce1. Add this to index.php:
var_dump(\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aModuleEvents'));

2. Press F5 and have a look at the result.
3. Switch to the console and execute those commands
3.1.
vendor/bin/oe-console oe:module:activate oepaypal

3.2.
vendor/bin/oe-console oe:module:deactivate oepaypal

3.3.
vendor/bin/oe-console oe:module:activate oepaypal

4. Switch back to the frontend and press F5 again. You will have multiple entries for the events like this:
  0 => 
    array (size=2)
      'onActivate' => string '\OxidEsales\PayPalModule\Core\Events::onActivate' (length=48)
      'onDeactivate' => string '\OxidEsales\PayPalModule\Core\Events::onDeactivate' (length=50)
  1 => 
    array (size=2)
      'onActivate' => string '\OxidEsales\PayPalModule\Core\Events::onActivate' (length=48)
      'onDeactivate' => string '\OxidEsales\PayPalModule\Core\Events::onDeactivate' (length=50)


It is reproducible with each module which has events.
TagsModule
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
MySQL VersionNot defined

Activities

QA

2020-01-29 16:27

administrator   ~0013106

-MK