[rt-users] Change Owner in QuickCreate / QuickTicket to dropdown list of Users based on Queue

Bartosz Maciejewski b.maciejewski at agriplus.pl
Wed Apr 9 05:06:42 EDT 2014


Hello, I want to change field from only Me and Nobody to full list of 
Users which have rights to Queue.

So far I managed to change this code on QuickCreate Element:

<td class="label"><&|/l&>Owner</&>:</td><td class="value">
<select type="select" name="Owner">
<option value="<%RT->Nobody->id%>"><%loc('Nikt')%></option>
<option value="<%$session{'CurrentUser'}->id%>" 
selected="selected"><&|/l&>Ja</&></option>

To this:

<td class="label"><&|/l&>Owner</&>:</td><td class="value"><& 
/Elements/SelectOwner, Name => 'Owner' &>

And it works, but gives me list of all users. Putting 
SelectOwnerDropdown instead of SelectOwner narrows selection only to Me 
and Nobody again.

Can this be done like in Ticket/Create.html - list of users only granted 
rights to specific Queue? What I can see in Create.html it is handled 
other way - like using EditBasisc element?

-- 
BM



More information about the rt-users mailing list