| 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 (6844 days ago) |
| Due | |
| Updated | 02/14/2007 (6843 days ago) |
| Assigned | 02/13/2007 (6844 days ago) |
| Resolved | 02/14/2007 (6843 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
State ⇒ Assigned
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
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