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!
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!
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
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
|
DetailsSuppose 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
Sunday, 09 August 2009, 04:42 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 198