[rt-users] Strange problem - User object becomes string

Stephen Turner sturner at MIT.EDU
Thu Sep 28 14:19:31 EDT 2006


Hello,

I'm trying to figure out a strange problem in one of our 
customizations (RT 3.4.2, Apache 1.3.33, mod_perl 1.29. Perl 5.8.3, RHEL 3).

We inserted a callback into User/Prefs.html to provide a UI for 
additional user preferences. Here's what that looks like:

<& /Elements/Callback, user => $UserObj, results => \@results, %ARGS &>

The problem is that sometimes (but not always) when we get into the 
callback, the "user" argument is a string containing the current 
user's username, not a User object.

Here's the relevant code in the callback:

<%ARGS>
$user => undef
@results => undef
</%ARGS>

Can anyone think why $user transforms from a User object into a 
string? I'm wondering if there's some kind of name collision between 
the 'user' field entered on the login screen and my argument name.

Thanks,
Steve

Stephen Turner
Senior Programmer/Analyst - Client Support Services
MIT Information Services and Technology (IS&T)





More information about the rt-users mailing list