Fullscreen
Loading...
 
Skip to main content

Plugin tracker send emails with the wrong template for some of the emails defined in the params

Status
Closed
Subject
Plugin tracker send emails with the wrong template for some of the emails defined in the params
Version
15.x
16.x
Category
  • Error
Feature
Trackers
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Volunteered to solve
Jonny Bradley
Lastmod by
Xavier de Pedro
Rating
(0)
Description

Plugin tracker send emails with the wrong template for some of the emails defined in the params
https://doc.tiki.org/PluginTracker#Advanced_plugin_usage_2_multiple_recipients_multiple_templates_Question

I defined this type of plugin call:

Copy to clipboard
{TRACKER(trackerId="1" action="Submit" fields="1:2:3:4:5" email="noreply@example.com|5,cc1@example.com,cc2@example.com|wiki:tpl_report_own_request,wiki:tpl_report_new_request,wiki:tpl_report_new_request")} some text {TRACKER}


The issue is that the emails sent to cc1 at example.com and cc2 at example.com contain the first template (wiki:tpl_report_own_request), and not the next one corresponding to them (wiki:tpl_report_new_request).

Reproduced at:
http://xavi-9794-6051.show.tikiwiki.org/tiki-index.php?page=Bug_TrackerQuestion
First http auth:
u: show
p: show

tiki credentials:
u: admin
p: 12345

Change the emails set as recipients in that email param of the plugin Tracker of that "Bug_Tracker" page. And add a new bug report as anonymous for instance. The 2 emails set hardcoded in the plugin tracker param email should get their emails with template "new" (tpl_report_new_request) but they get them also with template "own" (tpl_report_own_request )

Solution

Fixed hopefully in trunk in r59302Question? Will backport if working


Thanks jonnyb, confirmed it works as expected in trunk, and I backported it myself to 15.x in r59312Question.

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6051
Created
Thursday 28 July, 2016 12:22:03 UTC
by Xavier de Pedro
LastModif
Friday 29 July, 2016 12:11:55 UTC


Show PHP error messages