Bug? in 3.2.1rc4 - Program fragment delivered error ``syntax error at template line 1, near "->Subject$s "'' on comments?

Got the first one trying to change the subject of a ticket, saw another one
with a resolution comment. Took care of some of the display problems I have
been having in the Builder.

Here is entries from rt.log.

[Wed Jul 14 22:38:57 2004] [warning]: Scalar found where operator expected
at template line
1, near “->Subject$s”
(/usr/rt3/lib/RT.pm:250)
[Wed Jul 14 22:38:57 2004] [warning]: (Missing operator before $s?)
(/usr/rt3/lib/RT.pm:250)

I get an email like the following subject when this happens:

[domain.com #982] [Comment] Program fragment delivered error ``syntax error
at template line 1, near "->Subject$s "’'
Ted Serreyn Phone:262-432-0260 Fax:262-432-0232
Serreyn Network Services, LLC http://www.serreyn.com/

Do you, by any chance, have any custom email templates?On Wed, Jul 14, 2004 at 06:07:06PM -0500, Ted Serreyn wrote:

Got the first one trying to change the subject of a ticket, saw another one
with a resolution comment. Took care of some of the display problems I have
been having in the Builder.

Here is entries from rt.log.

[Wed Jul 14 22:38:57 2004] [warning]: Scalar found where operator expected
at template line
1, near “->Subject$s”
(/usr/rt3/lib/RT.pm:250)
[Wed Jul 14 22:38:57 2004] [warning]: (Missing operator before $s?)
(/usr/rt3/lib/RT.pm:250)

I get an email like the following subject when this happens:

[domain.com #982] [Comment] Program fragment delivered error ``syntax error
at template line 1, near "->Subject$s "’’

Ted Serreyn Phone:262-432-0260 Fax:262-432-0232
Serreyn Network Services, LLC http://www.serreyn.com/


Rt-devel mailing list
Rt-devel@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Found it, default admin comment template looks like the following:

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

In my RT, it looks like:

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

Perhaps you edited it locally?