In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
992 [In-Portal CMS] Front End bug report always 2011-02-05 08:21 2011-09-19 16:09
alex  
alex  
normal  
closed 5.1.2-B1  
fixed  
 
none 5.1.3-B1  
https://groups.google.com/d/topic/in-portal-bugs/7mTfeUvscFY/discussion
Fixed ignorance of debug=1 parameter in <inp2:m_XMLTemplate/> tag
0
0000992: Parameter "debug" in url is ignored during <inp2:m_XMLTemplate .../> tag usage
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.
patch debug_parameter_not_working_with_xmltemplate_tag.patch (1,123) 2011-02-05 08:21
http://tracker.in-portal.org/file_download.php?file_id=933&type=bug
Issue History
2011-09-19 16:09 alex Note Added: 0003867
2011-09-19 16:09 alex Status resolved => closed
2011-05-20 03:06 alex Note Added: 0003432
2011-05-20 03:06 alex Status reviewed and tested => resolved
2011-05-20 03:06 alex Fixed in Version => 5.1.3-B1
2011-05-20 03:06 alex Resolution open => fixed
2011-05-20 03:06 alex Assigned To !COMMUNITY => alex
2011-05-20 03:06 alex Changeset attached 5.1.x r14324
2011-04-04 11:49 Dmitry Target Version Icebox => 5.1.3
2011-02-05 15:30 Dmitry Note Added: 0003221
2011-02-05 15:30 Dmitry Status needs testing => reviewed and tested
2011-02-05 08:22 alex Assigned To => !COMMUNITY
2011-02-05 08:22 alex Developer => alex
2011-02-05 08:22 alex Status active => needs testing
2011-02-05 08:22 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/7mTfeUvscFY/discussion
2011-02-05 08:21 alex New Issue
2011-02-05 08:21 alex File Added: debug_parameter_not_working_with_xmltemplate_tag.patch
2011-02-05 08:21 alex Change Log Message => Fixed ignorance of debug=1 parameter in <inp2:m_XMLTemplate/> tag

Notes
(0003221)
Dmitry   
2011-02-05 15:30   
Reviewed and tested good.
(0003432)
alex   
2011-05-20 03:06   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000992: Parameter "debug" in url is ignored during <inp2:m_XMLTemplate .../> tag usage
(0003867)
alex   
2011-09-19 16:09   
Closing, since 5.1.3 release has been released.