Parameter "debug" in url is ignored during <inp2:m_XMLTemplate .../> tag usage
Components
Labels
None
Description
Context Information
None
Additional information (do not use)
None
Attachments
1
Activity
Show:
Alex September 19, 2011 at 9:09 PM
Closing, since 5.1.3 release has been released.
Alex May 20, 2011 at 8:06 AM
Fix committed to [b]5.1.x branch/b. Commit Message:
Fixes #0000992: Parameter "debug" in url is ignored during <inp2:m_XMLTemplate .../> tag usage
Dmitry Andrejev February 5, 2011 at 9:30 PM
Reviewed and tested good.
Fixed
Priority
Assignee
Reporter
Alex
AlexDeveloper
Alex
AlexChange Log Message
Fixed ignorance of debug=1 parameter in <inp2:m_XMLTemplate/> tag
Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
992
External issue URL
Fix versions
Affects versions
Created February 5, 2011 at 2:21 PM
Updated December 29, 2024 at 9:14 PM
Resolved September 19, 2011 at 9:09 PM
In-Portal has nice debug mode feature where various analytical information about ongoing processes on every page is displayed. When allowed by "/system/debug.php" file this debugger report can be viewed by pressing F12 on every page being visited (both Front-end and Admin Console).
Usually developers have this mode turned on by default to simplify development process. However in some cases debug mode should be temporarily turned off, e.g. when XML document is displayed then "text/xml" header is sent instead of "text/html", so no HTML of debugger will work anyway.
To do that in templates there is a <inp2:m_NoDebug/> tag that does it's job. But to enable debug mode (e.g. temporarily cancel this tag effect without changing the template, where it's used) developer can add &debug=1 parameter into url of the page, he is browsing.
There is also <inp2:m_XMLTemplate .../> tag that also disables debug mode, but adding &debug=1 to url has no effect. Attached patch fixes that.