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


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch today. Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to