[Rt-devel] 3.2 vs 3.0.11 syntax for SelectOwner
matthew zeier
mrz at intelenet.net
Thu Jul 1 14:53:13 EDT 2004
> On Wed, 2004-06-30 at 20:08, matthew zeier wrote:
> > On 3.0.11 in Update.html, I have:
> > [snip]
> RT 3.2 just added a DefaultLabel parameter that overrides the "-" that
> was previously shown in RT 3.0 when the default option was selected.
> Just add the "Default => ..." option that you had in RT 3.0, and you
> should be good to go.
Alex, you lost me - what would the full syntax look like? Replace
DefaultLable with the whole clause starting with Default ?
rt 3.2:
<& /Elements/SelectOwner, Name=>"Owner", DefaultLabel => loc("[_1]
(Unchanged)",
$TicketObj->OwnerObj->Name()), QueueObj => $TicketObj->QueueObj, TicketObj
=> $
TicketObj &>
rt 3.0.11:
<!-- 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->Queu
eObj, TicketObj => $TicketObj &>
More information about the Rt-devel
mailing list