adrianbj / TracyDebugger

The ultimate debugging and development tool for ProcessWire
https://adrianbj.github.io/TracyDebugger/
GNU General Public License v2.0
87 stars 13 forks source link

Overriding settings with $config->tracy causes error in module settings #93

Closed jlahijani closed 4 months ago

jlahijani commented 4 months ago

If I do this in config.php:

$config->tracy = [
  "frontendPanels" => [
    "processwireInfo",
    "requestInfo",
  ],
];

Then when viewing the module settings in the admin, it will error with:

PHP Warning: Array to string conversion in [.../site/modules/TracyDebugger/TracyDebugger.module.php:3283]

This happens because that bit of code that shows what been overridden doesn't consider array values.

adrianbj commented 4 months ago

Thanks @jlahijani - fixed in the latest version.