[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] smarty 5: pretty tracker template use assign rather than set to prevent...
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <696e04c0b11d6_2c181938839b6@gitlab-sidekiq-low-urgency-cpu-bound-v2-747b69684d-f7mcl.mail> |
Victor Emanouilov pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
54656d60 by Victor Emanouilov at 2026-01-19T12:17:31+02:00
[FIX] smarty 5: pretty tracker template use assign rather than set to prevent override of current template scope with nested tracker fields rendering (e.g. for other tracker items)
- - - - -
1 changed file:
- templates/tracker_pretty_item.tpl
Changes:
=====================================
templates/tracker_pretty_item.tpl
=====================================
@@ -5,21 +5,21 @@
{if $field.type ne 'x'
and (empty($listfields) or in_array($field.fieldId, $listfields))
and ($field.type ne 'p' or $field.options_array[0] ne 'password')}
- {capture name=value}
+ {capture name=value|cat:'i':$item.itemId:'f':$field.fieldId}
{trackeroutput item=$item field=$field list_mode=$list_mode showlinks=$context.showlinks url=$context.url}
{/capture}
- {set var="f_"|cat:$field.fieldId value=$smarty.capture.value}
- {set var="f_"|cat:$field.permName value=$smarty.capture.value}
+ {assign var="f_"|cat:$field.fieldId value=$smarty.capture.value}
+ {assign var="f_"|cat:$field.permName value=$smarty.capture.value}
{else}
- {set var="f_"|cat:$field.fieldId value=''}
- {set var="f_"|cat:$field.permName value=''}
+ {assign var="f_"|cat:$field.fieldId value=''}
+ {assign var="f_"|cat:$field.permName 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.itemUsers|join:', '}
+{assign var=f_created value=$item.created}
+{assign var=f_lastmodif value=$item.lastModif}
+{assign var=f_itemId value=$item.itemId}
+{assign var=f_status value=$item.status}
+{assign var=f_itemUser value=$item.itemUsers|join:', '}
{* ------------------------------------ *}
{if $force_separate_compile eq 'y'}
{include file="$wiki" item=$item compile_id=$f_itemId}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/54656d60a58f1f67c9729c77a5c0ef3f6f7fe4bc
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/54656d60a58f1f67c9729c77a5c0ef3f6f7fe4bc
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs