In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Vertical ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0000306 [In-Portal CMS] Template System bug report always 2009-09-18 03:24 2010-01-11 22:05
Reporter alex View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0000306: Parameter "result_to_var" doesn't work for m_Param tag
Description Parameter "result_to_var" allows to store tag result into parser parameter name, that is specified. It doesn't work for this code:

<inp2:m_Capture to_var="test">
data
</inp2:m_Capture>

<inp2:m_Param name="test" result_to_var="other"/>

Parameter "other" will be empty, but should contain "data" as it's value.
Additional Information Problem is hidden in "result_to_var" parameter implementation code. There are two places, where this parameter is processed:
* compiled template code
* PostProcess method of TagProcessor class

1. for non-pair tags this parameter is processed in both places
2. for pair tags this parameter is processed on in 2nd place (PostProcess method).

PostProcess method set's tag result to parser parameter on current deep level. That raises a problem, when deep level is changed after that. For example: all pair tags change deep level and they automatically loose parameter value, when deep level is restored.

I propose, that we should move all "result_to_var" parameter processing into compiled template code to avoid such problem in future.

=====================

In case if we comment-out "result_to_var" processing in PostProcess method, then there is fatal error about missing "_TagProcessor" in all grids in administrative console.



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker