[rt-users] Retrieving "OldReference" values from Transaction

Gene LeDuc gleduc at mail.sdsu.edu
Thu Apr 12 17:25:59 EDT 2007

Don't you hate it when you wish you'd waited a few minutes before hitting 
the Send button?

Disregard my original request for help, I stumbled across the answer 
myself.  I was making things too complicated for myself by snooping in the 
database.  The RT code cleverly figures out whether it needs to undo a 
reference or just return a value from the table when you grab 
$self->TransactionObj->OldValue and returns whatever is appropriate.  Very 


At 01:45 PM 4/12/2007, Gene  LeDuc wrote:
>Can someone tell me how to retrieve the value that is referenced by 
>$self->TransactionObj->OldReference in a scrip?  The actual value that 
>comes back is a reference to a record store in the ObjectCustomFieldValues 
>table of the database.  I've tried about 20 different things trying to get 
>it to return the referenced value instead of the reference id, but so far 
>it's beaten me.  I've also looked at the wiki pretty thoroughly, but I 
>haven't found anything there that does this.  There's plenty about 
>$self->TransactionObj->OldValue, but nothing about OldReference.
>Gene LeDuc, GSEC
>Security Analyst
>San Diego State University
>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

Gene LeDuc, GSEC
Security Analyst
San Diego State University 

More information about the rt-users mailing list