[Tickets #4992] Template engine does not handle two loops with the same tags correctly
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Feb 13 02:44:18 PST 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=4992
-----------------------------------------------------------------------
Ticket | 4992
Created By | wrobel at pardus.de
Summary | Template engine does not handle two loops with the same tags correctly
Queue | IMP
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 1. Low
Owners |
+New Attachment | imp_lib_Template.php-Loop_tag_fix-20070213.patch
-----------------------------------------------------------------------
wrobel at pardus.de (2007-02-13 02:44) wrote:
If a template such as imp/templates/acl/acl.html holds two loops, each
using the same tag (see loop:rights in the specified template) the
template compilation may fail since the loop values get confused. The
cached template looks like this for expamle:
foreach (arrays['rights'] as $k4 => $v4)
{
print $k1 . "," . $v1;
}
The problem was noted when editing folder acls within imp on a kolab
server. The descriptions are missing for the different rights and the
edited values were not correctly saved.
While the patch it applies to imp/lib/Template.php the same problem
probably also exists for the general Template engine module in framework.
Patch was provided by willverschuur at gmail.com
Corresponding Kolab bug: https://intevation.de/roundup/kolab/issue1595
More information about the bugs
mailing list