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
pull/11/head
Christian Boltz 9 years ago
parent 80e99e1b54
commit 48dde6468a

@ -51,8 +51,8 @@
<td>&nbsp;</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'}

Loading…
Cancel
Save