[rt-devel] Custom Condition using a CustomField

Andy Harrison ah30 at harrisonfamily.com
Mon Feb 9 12:57:10 EST 2004


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Mon, 09 Feb 2004 20:17:46 +0300, Ruslan U. Zakirov wrote
Subject: "Re: [rt-devel] Custom Condition using a CustomField"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
>  return undef unless ($self->TransactionObj->Type eq "Create");
>  return undef unless ($self->TicketObj->FirstCustomFieldValue('mycf') =~ 
>  /GWI/i);
>  return 1;

Very cool.  Cutting it down to just these three lines did the trick.

One more question because I've never done a custom action.

I want to use "Notify Requestors and Ccs" but also 
push(@{$self->{'Cc'}}, 'foo\@example.com');

How can I do this?

-- 
Andy Harrison
(full headers for details)




More information about the Rt-devel mailing list