ellisv / oxid-console

[UNMAINTAINED] OXID Console is php console application for OXID Shop. It provides an API for writing various commands. We have shipped very common for every oxid shop project commands out of the box.
MIT License
23 stars 17 forks source link

Fixed Bug which leads to use of wrong module settings on config key duplicates #46

Open DirkBaumeister opened 7 years ago

DirkBaumeister commented 7 years ago

I fixed a bug which leaded to use of wrong module settings in the fix states command.

The problem was: The oxconfig object initializes the module settings in a global array called _aConfigParams. In this array is no mapping to the modules. If the case is present that two module have keys with the exact same name then it happens that one of the modules get the setting of the other module on fix states.

With my changes this bug is resolved.

I did the following:

To be honest: This leads to a bad design of the oxconfig object structure because they concat all the params in array without an sublevel of modules.