[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 <696e04c815ca_2c1d7158569f2@gitlab-sidekiq-low-urgency-cpu-bound-v2-747b69684d-j5ntl.mail>

Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
a50b9b90 by Victor Emanouilov at 2026-01-19T12:17:39+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/a50b9b90a15c98f44f7fa5b1ea334d8514ae4654

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a50b9b90a15c98f44f7fa5b1ea334d8514ae4654
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.