mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
list.tpl:
- getting the key from $RAW_item.$id_field turned out to be broken in corner cases, leading to empty output. The better (and simpler) fix is to just let the foreach loop set 'itemkey'. - the example for special handling of a specific table and field contained a superfluous </tr> git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1826 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
1 parent
80e99e1b54
commit
48dde6468a
1 file changed
+3
-3
+3
-3
@@ -51,8 +51,8 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$RAW_items item=RAW_item}
|
||||
{assign "item" $items.{$RAW_item.$id_field|escape:"html"}} {* array keys in $items are html-escaped *}
|
||||
{foreach key=itemkey from=$RAW_items item=RAW_item}
|
||||
{assign "item" $items.${itemkey|escape:"html"}} {* array keys in $items are html-escaped *}
|
||||
{#tr_hilightoff#}
|
||||
|
||||
{foreach key=key item=field from=$struct}
|
||||
@@ -66,7 +66,7 @@
|
||||
{/if}
|
||||
|
||||
{if $table == 'foo' && $key == 'bar'}
|
||||
<td>Special handling (complete table row) for {$table} / {$key}</td></tr>
|
||||
<td>Special handling (complete table row) for {$table} / {$key}</td>
|
||||
{else}
|
||||
<td>
|
||||
{if $table == 'foo' && $key == 'bar'}
|
||||
|
||||
Reference in new issue
Block a user