Anonymous | Login | Signup for a new account | 2024-04-18 22:16 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Dependency Graph | [ View Issue ] [ Relation Graph ] [ Horizontal ] | |||
|
||||
|
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. |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |