On Thu, Jul 04, 2013 at 02:38:10AM -0700, scott.dalzell wrote:
> The  "if ( $type eq 'Create' ) {" & "elsif ( $type eq 'CustomField' ) {"
> section dont work correctly as there not returning the corect values out
> regardless if Alert_Support_T is set to 'Alert' or 'null'
> 
> The 'Create' section always returns 1 and continualy sends emails and the
> 'custonfield' section always returns 0

If it continually sends emails, even on non-creates, that's
concerning.

> Could you explain to me how to add the logger (below) as i get a sintax
> error when i try to add it refering to 'Alert_Support_T' 

I missed a closing ) on my example code.

If you get syntax errors, it's helpful to post the error.

-kevin

> >You should always check Load 
> >my ($id, $msg) = $cf->Load("Alert_Support_T""); 
> >unless ($id) { 
> >    RT->Logger->error("Unable to load Foo: $msg"; 
                                                   )
> >    return 0; 
> >} 

-kevin

Attachment: pgpvLNkaNPf2Q.pgp
Description: PGP signature

Reply via email to