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 => [EMAIL PROTECTED], %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)


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

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