View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007079 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2020-01-29 13:32 | 2020-03-23 11:52 |
Reporter | michael_keiluweit | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 6.2.0-rc.1 | ||||
Target Version | 6.2.0 | Fixed in Version | 6.2.0 | ||
Summary | 0007079: Module event information is saved repeatedly to oxconfig.aModuleEvents | ||||
Description | When 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 Reproduce | 1. 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. | ||||
Tags | Module | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||