View Issue Details

IDProjectCategoryView StatusLast Update
0007079OXID eShop (all versions)2.3. Extensions (modules, themes)public2020-03-23 11:52
Reportermichael_keiluweit Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version6.2.0-rc.1 
Target Version6.2.0Fixed in Version6.2.0 
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
Database VersionNot defined

Activities

QA

2020-01-29 16:27

administrator   ~0013106

-MK