[Rt-commit] r13668 - in rt/3.8/trunk: . share/html/Ticket/Elements
kyoki at bestpractical.com
kyoki at bestpractical.com
Fri Jun 27 22:15:43 EDT 2008
Author: kyoki
Date: Fri Jun 27 22:15:42 2008
New Revision: 13668
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Elements/SelectOwner
rt/3.8/trunk/share/html/Ticket/Elements/Reminders
Log:
r23444 at nyx: kyoki | 2008-06-27 22:15:37 -0400
RT-Ticket: 9841
RT-Status: Resolved
RT-Update: Correspond
drop down lists now sort names
Modified: rt/3.8/trunk/share/html/Elements/SelectOwner
==============================================================================
--- rt/3.8/trunk/share/html/Elements/SelectOwner (original)
+++ rt/3.8/trunk/share/html/Elements/SelectOwner Fri Jun 27 22:15:42 2008
@@ -50,14 +50,16 @@
<option value=""<% !$Default ? qq[ selected="selected"] : '' |n %>><%$DefaultLabel%></option>
%}
% $Default = 0 unless defined $Default && $Default =~ /^\d+$/;
-%foreach my $User ( @users) {
+% my @formatednames = sort {lc $a->[1] cmp lc $b->[1]} map {[$_, $m->scomp('/Elements/ShowUser', User => $_)]} @users;
+%foreach my $UserRef ( @formatednames) {
+%my $User = $UserRef->[0];
<option <% ( $User->Id == $Default) ? qq[ selected="selected"] : '' |n %>
%if ($ValueAttribute eq 'id') {
value="<%$User->id%>"
%} elsif ($ValueAttribute eq 'Name') {
value="<%$User->Name%>"
%}
-><& /Elements/ShowUser, User => $User &></option>
+><% $UserRef->[1] %></option>
%}
</select>
<%INIT>
Modified: rt/3.8/trunk/share/html/Ticket/Elements/Reminders
==============================================================================
--- rt/3.8/trunk/share/html/Ticket/Elements/Reminders (original)
+++ rt/3.8/trunk/share/html/Ticket/Elements/Reminders Fri Jun 27 22:15:42 2008
@@ -133,7 +133,7 @@
<tr class="input-row">
<td class="label">
<label class="horizontal" for="NewReminder-Owner" ><&|/l&>Owner</&>:</label></td><td class="value">
-<& /Elements/SelectOwner, Name => 'NewReminder-Owner', QueueObj => $Ticket->QueueObj, DefaultValue => 0 &>
+<& /Elements/SelectOwner, Name => 'NewReminder-Owner', QueueObj => $Ticket->QueueObj, Default=>$session{'CurrentUser'}->id, DefaultValue => 0 &>
</td>
</tr>
<tr class="input-row">
More information about the Rt-commit
mailing list