[Rt-devel] RT 3.2.2 custom scrip with user defined condition fails
Stefan Fischer
stefan at van-boxmer.de
Thu Jan 27 12:04:11 EST 2005
Hello,
i have asked this problem a view days bevore in the rt-users section,
but nobody could help me.
I have a custom condition
if (($self->TransactionObj->Type eq "CustomField") and
($self->TransactionObj->Field eq 2) and
($self->TransactionObj->NewValue eq "20 Antrag eingetroffen")) {
return(1);
} else {
return(undef);
}
in a user defined (global) scrip to send out email (global template) on
custom field change. But even if i try only "return(1);" as condition,
the error is the same. No email is send and in syslog the followinf
error apears:
Jan 27 17:48:39 debian64 RT: Scrip Prepare 92 died. - $/ as given is
currently unsupported at /usr/share/perl5/MIME/Body.pm line 194
Stack: [/usr/share/perl/5.8/Carp.pm:86]
[/usr/share/perl5/IO/ScalarArray.pm:350]
[/usr/share/perl5/MIME/Body.pm:194]
[/usr/share/request-tracker3.2/lib/RT/I18N.pm:218]
[/usr/share/request-tracker3.2/lib/RT/Action/SendEmail.pm:153]
[/usr/share/request-tracker3.2/lib/RT/Action/Notify.pm:65]
[/usr/share/request-tracker3.2/lib/RT/ScripAction_Overlay.pm:217]
[/usr/share/request-tracker3.2/lib/RT/Scrip_Overlay.pm:468]
[/usr/share/request-tracker3.2/lib/RT/Scrips_Overlay.pm:232]
[/usr/share/request-tracker3.2/lib/RT/Transaction_Overlay.pm:146]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3707]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3471]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3379]
[/usr/share/request-tracker3.2/lib/RT/Interface/Web.pm:1153]
[/usr/share/request-tracker3.2/html/Ticket/Modify.html:71]
[/usr/share/request-tracker3
I am totally lost. Hopefully somebody can help me.
Greetings,
Stefan
More information about the Rt-devel
mailing list