Closed lftbrts closed 10 years ago
It disables debug so that the AJAX responses aren't malformed. How is this breaking other components if the override only applies to a single AJAX request? Are you trying to debug it?
The more I think about it, the more I see that setting the debug level in the initialize()
method is perfectly okay.
The
AjaxHandlerComponent::initialize()
overrides the debug-level with a value of 0. Afterwards the setting is never reset to its original value. This behavior has a serious impact on other components, etc. Is this piece of source code an artifact or necessary?