Error when using custom template

Hello list,
I’m starting to test a custom template. When RT tries to use it, I see an
error appear in the system log:

Use of uninitialized value in substitution (s///) at
/opt/rt4/sbin/…/lib/RT/Transaction.pm line 362

That line seems to be detecting any form of new line it can, so how could
my template possibly cause such an odd problem? This is my first stab at
custom templates; my boss doesn’t want quoted text, so he wants reply links
in the body of notification emails that people will use in place of
standard email replies. I’ve pasted the text of my template below:

Ticket {$Ticket->id} was updated (
click here to
reply
):

{$Transaction->Description}

Please do not reply to this message. Instead,
click here to
reply
,
or
open this
ticket on the ticket site
.

Alex Hall
Automatic Distributors, IT department
ahall@autodist.com

Hello List!

I am setting up a new queue for our Hiring Team. They need approvals setup. First is HR approval with range for the position.
Then the requesting manager needs a director’s approval to move forward. We have many directors and the directors need the range information before they will approve.

I setup HR as Approvers in RT Approval using __Approvals using Template and scrip from this link Customizing/Approvals - RT 4.4.0 Documentation - Best Practical

This works for the initial approval by HR

Now is there a way to make secondary approval from the director as well I do not want every director being notified of a pending approval only the relevant director.

Any help would be greatly appreciated.

Brian

Hi Brian,On Wed, Oct 26, 2016 at 2:45 PM, Dunbar, Brian Brian.Dunbar@von.ca wrote:

Any help would be greatly appreciated.

I don’t know about secondary approvals. If the approvals approach
doesn’t solve your problem, you could solve it with a lifecycle.

-m

Add this directly above or below the Subject line in the template but before the blank line.

Content-Type: text/htmlOn Oct 26, 2016, at 12:15 PM, Alex Hall <ahall@autodist.commailto:ahall@autodist.com> wrote:

Hello list,
I’m starting to test a custom template. When RT tries to use it, I see an error appear in the system log:

Use of uninitialized value in substitution (s///) at /opt/rt4/sbin/…/lib/RT/Transaction.pm line 362

That line seems to be detecting any form of new line it can, so how could my template possibly cause such an odd problem? This is my first stab at custom templates; my boss doesn’t want quoted text, so he wants reply links in the body of notification emails that people will use in place of standard email replies. I’ve pasted the text of my template below:

Subject: {$Transaction->CreatorObj->Name} Updated Ticket {Ticket->id}

Ticket {$Ticket->id} was updated (
click here to reply):

{$Transaction->Description}

Please do not reply to this message. Instead,
click here to reply,
or
open this ticket on the ticket site.

Alex Hall
Automatic Distributors, IT department
ahall@autodist.commailto:ahall@autodist.com
RT 4.4 and RTIR training sessions, and a new workshop day! Training — Best Practical Solutions

  • Boston - October 24-26
  • Los Angeles - Q1 2017

Landon Stewart
Lead Analyst - Abuse and Security Management
INTERNAP ®
:e-mail: lstewart@internap.commailto:lstewart@internap.com
:earth_africa: www.internap.comhttp://www.internap.com