Inefficient and it is perhaps also a security leak.
See
irc log
TW5.1 update tracker_pretty_item.tpl: add parsing. I am not sure I am allowed to commit this now.
{strip}
{* $Id: tracker_pretty_item.tpl 27932 2010-07-11 12:46:53Z minger0 $ *}
{* param item, fields, wiki(wiki:page or tpl:tpl), list_mode, perms, default_group, listfields *}
{if !isset($list_mode)}{assign var=list_mode value="n"}{/if}
{if !isset($parse)}{assign var=parse value="n"}{/if}
{foreach from=$fields item=field}
{if $field.isPublic eq 'y'
and ($field.isHidden eq 'n' or ($field.isHidden eq 'c' and $item.itemUser eq $user) or $field.isHidden eq 'p' or $tiki_p_admin_trackers eq 'y')
and $field.type ne 'x'
and $field.type ne 'h'
and $listfields) or in_array($field.fieldId, $listfields
and ($field.type ne 'p' or $field.options_array0 ne 'password')
and (empty($field.visibleBy) or in_array($default_group, $field.visibleBy) or $tiki_p_admin_trackers eq 'y')
}
{capture name=value}
{if isset($perms)}
missing page for plugin INCLUDE
{else}
missing page for plugin INCLUDE
{/if}
{/capture}
{set var=f_`$field.fieldId` value=$smarty.capture.value}
{else}
{set var=f_`$field.fieldId` value=''}
{/if}
{/foreach}
{set var=f_created value=$item.created}
{set var=f_lastmodif value=$item.lastModif}
{set var=f_itemId value=$item.itemId}
{set var=f_status value=$item.status}
{set var=f_itemUser value=$item.itemUser}
{* ------------ *}
missing page for plugin INCLUDE
{/strip}
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |