Ken:

Can you post the code that you cut and pasted to get a better idea of the 
problem.
Also something that I always fall into , is writing my action code in "Custom 
action cleanup code:"  and forgetting about and leaving
"Custom action preparation code:"  completely empty, you will need
return true ;
there.

Roy

From: [email protected] 
[mailto:[email protected]] On Behalf Of Kenneth Crocker
Sent: 08 October 2010 17:25
To: [email protected]
Subject: [rt-users] Help with "Correspond" condition

To List,

I have some code that strips information out of the content and sticks it into 
a Custom Field. IT works great when I trigger it with an condition set for 
email create tickets. Every time, it works with no problem.

However, when I set the condition for "On Correspond" it does nothing. I want 
to be able to update that Custom FIeld the same way I create it initially and I 
figured "On Correspond" was the right condition. Apparently not.

I look ed in the TRANSACTIONS Table and I See the Type as "Correspond". So why 
doesn't the same code (I copied and pasted) that works for a "Create" not work 
for "On Correspond"?

My error messages (which don't make sense since I am user 146 and am a 
SuperUser) are below:

[Fri Oct  8 16:07:44 2010] [warning]: Couldn't enable user 146 
(/opt/rt3/bin/../lib/RT/User_Overlay.pm:1143)
[Fri Oct  8 16:12:51 2010] [error]: Group::HasMember was called with an 
argument that isn't an RT::Principal or id. It's (undefined) 
(/opt/rt3/bin/../lib/RT/Group_Overlay.pm:1046)


Can anyone help me on this? I just need to get the condition right.

Thanks.

Kenn
LBNL
RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year -- Learn how to get the most out of RT!

Reply via email to