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:
<&|/l&>Owner: |
<%loc('Nikt')%>
<&|/l&>Ja
To this:
| <&|/l&>Owner: | <&
/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
|
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:
<&|/l&>Owner:
<%loc('Nikt')%>
<&|/l&>Ja
To this:
<&|/l&>Owner:<&
/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?
The problem is that in Create.html, the queue is already known so we can
list owners only for this queue. In Quickcreate, the queue is selected
at the same time, so you need to use some ajax query to update the owner
dropdown. Here is a hint for this:
http://issues.bestpractical.com/Ticket/Display.html?id=12545
any patch for a recent RT is welcome 
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com
W dniu 2014-04-09 11:44, Emmanuel Lacour pisze:
The problem is that in Create.html, the queue is already known so we can
list owners only for this queue. In Quickcreate, the queue is selected
at the same time, so you need to use some ajax query to update the owner
dropdown. Here is a hint for this:
Login
any patch for a recent RT is welcome 
Ok, I will try something based on this:
http://requesttracker.wikia.com/wiki/QuickTicket
The"Add custom fields to portlet" paragraph contains some Ajax tricks to
show CustomFields based on selcted Queue. However I’m not
Ajax/JavaScript programmer 
BM