[Rt-devel] 3.2 vs 3.0.11 syntax for SelectOwner

matthew zeier mrz at intelenet.net
Wed Jun 30 20:08:30 EDT 2004



On 3.0.11 in Update.html, I have:

<!-- mrz added for default ticket owner -->
<& /Elements/SelectOwner, Name=>"Owner", Default =>
(($TicketObj->OwnerObj->Id =
= $RT::Nobody->Id() && $TicketObj->CurrentUserHasRight('OwnTicket')) &&
$session
{'CurrentUser'}->Id || $TicketObj->OwnerObj->Id()),
QueueObj => $TicketObj->QueueObj, TicketObj => $TicketObj &>

I noticed the syntax in 3.2 is different:

<& /Elements/SelectOwner, Name=>"Owner", DefaultLabel => loc("[_1]
(Unchanged)",
 $TicketObj->OwnerObj->Name()), QueueObj => $TicketObj->QueueObj, TicketObj
=> $
TicketObj &>

My mind must be on the fritz - I'm not sure how to integrate my changes into
3.2.

ps. My change checked if the owner was Nobody then the person updating the
ticket became ticket owner.



--
matthew zeier, Sr. Network Engineer  | "Nothing in life is to be feared.
InteleNet Communications, Inc.       |  It is only to be understood."
(949) 784-7904                       |       - Marie Curie



More information about the Rt-devel mailing list