[rt-users] OnComment Scrip subject null

Jesse Vincent jesse at bestpractical.com
Thu Jan 3 13:03:42 EST 2002


Change:

 Subject: [Comment] {my $s=$Transaction->Subject; $s =~ s/\[Comment\]//g; $comment =~ s/^Re//i; $s;}

To:

 Subject: [Comment] {my $s=($Transaction->Subject || $Ticket->Subject); $s =~ s/\[Comment\]//g; $comment =~ s/^Re//i; $s;}

and you should be in business. I suspect it's because you're sending comments
on transactions where the re _is_ no transaction subject.

	-j


On Thu, Jan 03, 2002 at 09:54:50AM -0800, matthew zeier wrote:
> 
> Suddenly, the subjects on OnComment Scrips are empty.  The only thing that
> changed over the last couple days was the addition of OnOwnerChange and
> OnQueueChange.
> 
> I have a global scrip "OnComment NotifyAdminCcsAsComment with template
> AdminComment".
> 
> The template is:
> 
> --
> 
> 
> {$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
> This is a comment.  It is not sent to the Requestor(s):
> 
> {$Transaction->Content()}
> 
> --
> 
> I added Subject: {$Transaction->Subject|| "(No subject given)"} to the
> tempate to check and $Transaction->Subject is null for some reason.
> 
> Can someone tell me where to begin to look to debug this?
> 
> Thanks.
> 
> --
> matthew zeier - "In mathematics you don't understand things.  You just
> get used to them." - Johann von Neumann
> 
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the rt-users mailing list