Loading...
 
Skip to main content

Missing fields in tracker plugin templates

Status
Open
Subject
Missing fields in tracker plugin templates
Version
18.x Regression
Category
  • Regression
Feature
Trackers
Resolution status
New
Submitted by
Jean-Marc Libs
Lastmod by
Jean-Marc Libs
Rating
(0)
Description

When I create a wiki page to edit trackers using PluginTracker associated with a template and the fields option contains at least one field number, any other fields I put in the template is empty and can not be filled. On item creation, it works.

This is a big issue when the fields are meant to be displayed and not filled (itemlist fields, etc)

This seems to be a general issue: I also can't show the values which I should be able to put in the template according to this page: https://doc.tiki.org/Pretty-Tracker#Syntax_tipsQuestion

Copy to clipboard
{$f_created}: created date {$f_status_input}: status input field {$f_status}: status (output) {$f_itemId}: the item id {$f_lastmodif}: last modified date (this will display unix date, for human readable date look below) {$itemoff}: the iteration number of each item {$tr_offset}: the offset of the item, i.e. this is the nth item of the total number of x items


Same issue with sending emails

Copy to clipboard
{TRACKER(trackerId="5" fields="72" action="Submit" overwrite="y" itemId="{ {itemId} }" showdesc="n" url="/Concours" tpl="projet-soumission-Initiative_stratégique.tpl" email="noreply@xxx.ca|createdBy|projet-soumis-membre.tpl" emailformat="text" )}{TRACKER}


Will not recognize and include {$f_49} or {$mail_item_desc} (this should show the title field, which happens to be 49 also) in templates/mail/projet-soumis-membre.tpl

But :

Copy to clipboard
{TRACKER(trackerId="5" fields="72:49" action="Submit" overwrite="y" itemId="{ {itemId} }" showdesc="n" url="/Concours" tpl="projet-soumission-Initiative_stratégique.tpl" email="noreply@xxx.ca|createdBy|projet-soumis-membre.tpl" emailformat="text" )}{TRACKER}

Will replace {$f_49} with its value but still not {$mail_item_desc}

This is an issue because the fields to display in the mail are not always the same as are present in the tracker edition form. For instance, I want people to only update the field 72 (a checkbox) and get a confirmation email but all the rest was already filled on other forms.

Tiki18svn Version 64923

Importance
10 high
Easy to solve?
1 difficult
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6519
Created
Thursday 04 January, 2018 23:23:52 UTC
by Jean-Marc Libs
LastModif
Thursday 04 January, 2018 23:52:55 UTC


Show PHP error messages