Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

Open Power Template 2.x family

PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!

Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
Tasklist

FS#106 - View does not export the data format information to the compiler in template inheritance.

Attached to Project: Open Power Template
Opened by Zyx (Zyx) - Sunday, 09 August 2009, 03:51 GMT-8
Last edited by Zyx (Zyx) - Sunday, 09 August 2009, 04:42 GMT-8
Task Type Bug Report
Category Base class
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity High
Priority Immediate
Reported Version 2.0 SVN
Due in Version 2.0.1
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Suppose we have a template inheritance: foo.tpl > base.tpl. The modification of base.tpl causes foo.tpl to be recompiled. However, in this scenario, the Opt_View::_compile() method does not export the data format and dynamic inheritance information to the compiler, so that it could generate an invalid template. The solution is to add:

~~~~
$compiler->setInheritance($this->_cplInheritance);
$compiler->setFormatList(array_merge($this->_formatInfo, self::$_globalFormatInfo));
~~~~

To this method.
This task depends upon

Closed by  Zyx (Zyx)
Sunday, 09 August 2009, 04:42 GMT-8
Reason for closing:  Fixed
Additional comments about closing:  Fixed in rev. 198

Loading...