[rt-users] Transaction-level custom fields not working?

Drew Barnes barnesaw at ucrwcu.rwc.uc.edu
Tue Jun 17 11:14:13 EDT 2008


I think that setting a custom field is a separate transaction than the 
resolve.  Try looking into TransactionBatch in RT_SiteConfig.pm and for 
your scrip.  Should be a bit of info on the wiki.


Eirik Øverby wrote:
> Hi,
>
> I'm trying to implement a way to "silence" the resolve message to  
> requestor.
>
> However, I cannot make the following code - or any variant over it -  
> work as expected:
>     return 1 unless ($self->TransactionObj- 
>  >FirstCustomFieldValue('Silent') =~ /Yes/i );
>
> I have created a customfield named "Silent", type "select one", with  
> one selectable value (named "Yes"). However when trying to evaluate  
> that one in a custom condition, it is as if the value isn't ever set.
>
> If I try to walk the CustomFields object, I get as far as to  
> CustomFieldValues, which is a object hash for ObjectCustomFieldValues,  
> but I can't get beyond that (to me it seems like that object has no  
> children).
>
> Using RT 3.6.6. Known issue? Obvious mistake on my part (as usual)?
>
> Thanks,
> /Eirik
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>   

-- 
Drew Barnes
Applications Analyst
Network Resources Department
Raymond Walters College
University of Cincinnati




More information about the rt-users mailing list