On Mon, Aug 13, 2012 at 7:28 PM, Gergely Buday <[email protected]> wrote: > Hi there, > > my scrip is logged, but my logging commands do not result in a log > line. Here is the log the system prints upon its start: > > Aug 13 17:23:04 dox RT: > <[email protected]> > #2211/33968 - Scrip 23 Email dummy > (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301) > > But the following condition does not write the any log: > > $RT::Logger->info("Hello RT World!"); > > my $cf=$self->TransactionObj->CreatorObj->LoadCustomFieldByIdentifier('107'); > > my $cf2 = $session->{'CurrentUser'}->UserObj->FirstCustomFieldValue('107'); > > $RT::Logger->info("cf=$cf"); > $RT::Logger->info("cf2=$cf2"); > > return 1; > > What is the problem with the above code?
Have you picked user defined condition for the scrip? Custom condition code you write in the UI only works with "User Defined". > - Gergely -- Best regards, Ruslan.
