[rt-users] Linking a Transaction CF value to a Ticket CF value
Kevin Falcone
falcone at bestpractical.com
Fri Jul 5 10:10:29 EDT 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130705/ac9166bc/attachment.sig>
More information about the rt-users
mailing list