Re: [rt-users] Back to my Dynamic template choosing Scrip problem...

2013-10-07 Thread Landon Stewart
On 3 October 2013 04:27, Ruslan Zakirov r...@bestpractical.com wrote: Hi, You can do this by inserting custom TemplateObj method into RT/Action/SendMail.pm It should be like this: 1) behave like original method, so copy it from lib/RT/Action.pm 2) change template on call when Ticket and

Re: [rt-users] Back to my Dynamic template choosing Scrip problem...

2013-10-07 Thread Ruslan Zakirov
On Mon, Oct 7, 2013 at 10:52 PM, Landon Stewart lstew...@iweb.com wrote: On 3 October 2013 04:27, Ruslan Zakirov r...@bestpractical.com wrote: Hi, You can do this by inserting custom TemplateObj method into RT/Action/SendMail.pm It should be like this: 1) behave like original method, so

Re: [rt-users] Back to my Dynamic template choosing Scrip problem...

2013-10-07 Thread Landon Stewart
On 7 October 2013 12:43, Ruslan Zakirov r...@bestpractical.com wrote: Typo in my code made it less clear, it should have been: foreach my $name ($orig_name $case_type $lang, $orig_name $lang ) { ... } Idea is to look first for template with more detailed name, then look for name without

Re: [rt-users] Back to my Dynamic template choosing Scrip problem...

2013-10-04 Thread Landon Stewart
Hi Ruslan, Firstly, thank you! This worked remarkably well. I customized things a little to have it not be used unless it's the right type of notification etc but otherwise it was pretty much right on and works well. My Scrips are all now deleted and there's just one in there now for this

Re: [rt-users] Back to my Dynamic template choosing Scrip problem...

2013-10-03 Thread Ruslan Zakirov
Hi, You can do this by inserting custom TemplateObj method into RT/Action/SendMail.pm It should be like this: 1) behave like original method, so copy it from lib/RT/Action.pm 2) change template on call when Ticket and Txn are available 3) mark that change was done For example: sub TemplateObj

[rt-users] Back to my Dynamic template choosing Scrip problem...

2013-10-02 Thread Landon Stewart
Hello, This is not an easy issue to work out - I'm sorry for repeating this question but last time I answered myself and then realized the answer wasn't going to work out. Anyway here goes... I have a CF called Classification where we classify a ticket based on a scoring system for keywords in