Package name for Global symbol "$UserObj"

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

Is the issue wanting to see the top 10 that the user has rights to see, or making sure the user cannot see tickets they don’t have rights to see?

If its the later, modify the display template to not include the top ten. Quick fix.-----Original Message-----
From: Weqaar Janjua [mailto:weqaar@yahoo.com]
Sent: Wednesday, September 14, 2005 1:33 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] package name for Global symbol “$UserObj”

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://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

I have two queues and different users can create
tickets in both the queues, by default the tickets are
created with the ownership of the person who creates
it. Now I don’t want users who do not own the ticket
to even see it, the problem is they have the
‘showTicket’ rights in the queue, how would I restrict
non-ticket-creaters from seeing the ticket?
Thanks.

Is the issue wanting to see the top 10 that the user
has rights to see, or making sure the user cannot
see tickets they don’t have rights to see?

If its the later, modify the display template to not
include the top ten. Quick fix.

-----Original Message-----
From: Weqaar Janjua [mailto:weqaar@yahoo.com]
Sent: Wednesday, September 14, 2005 1:33 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] package name for Global symbol
“$UserObj”

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


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

Yahoo! Mail - PC Magazine Editors’ Choice 2005

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

-Weqaar

See

http://wiki.bestpractical.com/index.cgi?GlobalObjects

you need $session{‘CurrentUser’}->id

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

I did but other users still see the tickets they do
not own!

Move right from all users to Requestor queue role.

I have two queues and different users can create
tickets in both the queues, by default the tickets
are
created with the ownership of the person who
creates
it. Now I don’t want users who do not own the
ticket
to even see it, the problem is they have the
‘showTicket’ rights in the queue, how would I
restrict
non-ticket-creaters from seeing the ticket?
Thanks.

— "Harrison, William " harrison@itrd.gov
wrote:

Is the issue wanting to see the top 10 that the
user
has rights to see, or making sure the user
cannot
see tickets they don’t have rights to see?

If its the later, modify the display template to
not
include the top ten. Quick fix.

-----Original Message-----
From: Weqaar Janjua [mailto:weqaar@yahoo.com]
Sent: Wednesday, September 14, 2005 1:33 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] package name for Global
symbol
“$UserObj”

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


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


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.

Yahoo! Mail - PC Magazine Editors’ Choice 2005

Move right from all users to Requestor queue role.On 9/14/05, Weqaar Janjua weqaar@yahoo.com wrote:

I have two queues and different users can create
tickets in both the queues, by default the tickets are
created with the ownership of the person who creates
it. Now I don’t want users who do not own the ticket
to even see it, the problem is they have the
‘showTicket’ rights in the queue, how would I restrict
non-ticket-creaters from seeing the ticket?
Thanks.

— "Harrison, William " harrison@itrd.gov wrote:

Is the issue wanting to see the top 10 that the user
has rights to see, or making sure the user cannot
see tickets they don’t have rights to see?

If its the later, modify the display template to not
include the top ten. Quick fix.

-----Original Message-----
From: Weqaar Janjua [mailto:weqaar@yahoo.com]
Sent: Wednesday, September 14, 2005 1:33 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] package name for Global symbol
“$UserObj”

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


The rt-users Archives

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


The rt-users Archives

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


Yahoo! Mail - PC Magazine Editors’ Choice 2005
http://mail.yahoo.com


The rt-users Archives

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.