[Rt-devel] [PATCH] Add 'Nobody' as the first item in the owner list
Bram
rtdevel at lists.wizbit.be
Thu Dec 24 05:02:09 EST 2009
Originally the code in SelectOwner sorted the users by name and then
added the user Nobody at the start of the list:
my @users = sort { uc( $a->Name ) cmp uc( $b->Name ) } value
%user_uniq_hash;
unshift( @users, $RT::Nobody );
Later an extra sorting was added to sort the list by the displayed name:
http://github.com/bestpractical/rt/commit/ca8f28fe5ff39b8222a8180edcaa867f425682a0
% my @formatednames = sort {lc $a->[1] cmp lc $b->[1]} map {[$_,
$m->scomp('/Elements/ShowUser', User => $_)]} @users;
The attached patch re-adds the owner as the first item in the list.
Best regards,
Bram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-Nobody-as-the-first-item-in-the-owner-list.patch
Type: application/aegis-patch
Size: 0 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20091224/3e69c4c6/attachment.bin
More information about the Rt-devel
mailing list