[rt-users] Remove requestor on create?

Kenneth Crocker KFCrocker at lbl.gov
Wed Dec 19 15:28:17 EST 2007


Stephan,


	Good point. I've only been using PERL for a little while here so some 
code I've just copied from others. You idea makes sense to me. Thanks.


Kenn
LBNL

On 12/19/2007 7:22 AM, Stephen Turner wrote:
> At Tuesday 12/18/2007 03:20 PM, Kenneth Crocker wrote:
> 
>> # set Creator to "Nobody"
>>
>> $Trans->SetCreatorId(10, 'Force');
> 
> Kenn,
> 
> I know this is picky, but it's probably better to use $RT::Nobody->Id 
> than 10 - there's no guarantee that the Nobody Id will always be 10 in 
> the future. Plus it makes the code a bit more self-commenting.
> 
> Steve
> 




More information about the rt-users mailing list