[Rt-devel] 3.2 vs 3.0.11 syntax for SelectOwner

Alex Vandiver alexmv at bestpractical.com
Thu Jul 1 21:34:00 EDT 2004


On Thu, 2004-07-01 at 14:53, matthew zeier wrote:
> Alex, you lost me - what would the full syntax look like?  Replace
> DefaultLable with the whole clause starting with Default ?

You're not replacing anything, just adding a Default parameter:

<& /Elements/SelectOwner,
  Name=>"Owner",
  DefaultLabel => loc("[_1] (Unchanged)", $TicketObj->OwnerObj->Name()),
  QueueObj => $TicketObj->QueueObj,
  TicketObj => $TicketObj,
  Default => (($TicketObj->OwnerObj->Id == $RT::Nobody->Id() &&
               $TicketObj->CurrentUserHasRight('OwnTicket')) &&
              $session{'CurrentUser'}->Id || $TicketObj->OwnerObj->Id())
&>

 - Alex

-- 
Networking -- one letter away from not working


More information about the Rt-devel mailing list