6.0.0-alpha12
6/7/25

[#4992] Template engine does not handle two loops with the same tags correctly
Summary Template engine does not handle two loops with the same tags correctly
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester wrobel (at) pardus (dot) de
Created 02/13/2007 (6689 days ago)
Due
Updated 02/14/2007 (6688 days ago)
Assigned 02/13/2007 (6689 days ago)
Resolved 02/14/2007 (6688 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/14/2007 06:12:13 AM Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Fixed - thanks.  Also fixed in gollem and ingo.
02/14/2007 06:11:55 AM Michael Slusarz Deleted Original Message
 
02/13/2007 05:09:40 PM Chuck Hagenbuch Assigned to Michael Slusarz
State ⇒ Assigned
 
02/13/2007 10:44:18 AM wrobel (at) pardus (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Template engine does not handle two loops with the same tags correctly
Queue ⇒ IMP
New Attachment: imp_lib_Template.php-Loop_tag_fix-20070213.patch
State ⇒ Unconfirmed
Reply to this comment
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@gmail.com



Corresponding Kolab bug: https://intevation.de/roundup/kolab/issue1595

Saved Queries