[rt-users] package name for Global symbol "$UserObj"

Weqaar Janjua weqaar at yahoo.com
Wed Sep 14 14:41:00 EDT 2005


Thanks Ruslan, I defined teh following line and
deleted the default one, it worked:

<INPUT TYPE=Hidden Name="Owner" Value="<%
$session{CurrentUser}->Name %>" SIZE=40>

-Weqaar

--- Ruslan Zakirov <ruslan.zakirov at gmail.com> wrote:

> See
>
http://wiki.bestpractical.com/index.cgi?GlobalObjects
> you need $session{'CurrentUser'}->id
> 
> On 9/14/05, Weqaar Janjua <weqaar at yahoo.com> wrote:
> > Hi - I'm trying to modify html/Ticket/Create.html
> such
> > that the Owner by default is the one creating the
> > ticket, i.e.:
> > 
> > <& /Elements/SelectOwner, Name => "Owner",
> QueueObj =>
> > $QueueObj, Default =>
> $ARGS{Owner}||$RT::Nobody->Id,
> > DefaultValue => 0 &>
> > 
> > is replaced by:
> > 
> > <& /Elements/SelectOwner, Name => "Owner",
> QueueObj =>
> > $QueueObj, Default => $UserObj->Id, DefaultValue
> => 0
> > &>
> > 
> > This gives me an error saying $UserObj needs a
> package
> > name, any help? any other way to do that?
> > 
> > Thanks.
> > 
> > 
> > 
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
> > _______________________________________________
> >
>
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> > 
> > Be sure to check out the RT Wiki at
> http://wiki.bestpractical.com
> > 
> > Buy your copy of our new book, RT Essentials,
> today!
> > 
> > Download a free sample chapter from
> http://rtbook.bestpractical.com
> > 
> 
> 
> -- 
> Best regards, Ruslan.
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the rt-users mailing list