[Rt-commit] rt branch, rightsmatrix, updated. rt-3.8.8-606-g6d74fdb

Thomas Sibley trs at bestpractical.com
Mon Aug 30 15:38:30 EDT 2010


The branch, rightsmatrix has been updated
       via  6d74fdb24706cc53fd5367f9d084d1bfcf77433c (commit)
      from  71928032bf0ac78b9a139b0a163b3af901287e28 (commit)

Summary of changes:
 share/html/Admin/Elements/EditRights |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 6d74fdb24706cc53fd5367f9d084d1bfcf77433c
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Aug 30 15:40:40 2010 -0400

    Sort by right name and make it a tooltip for reference

diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights
index 21d0434..dc9839b 100644
--- a/share/html/Admin/Elements/EditRights
+++ b/share/html/Admin/Elements/EditRights
@@ -53,7 +53,6 @@ for my $collection (map { $_->[1] } @$Principals) {
         my $acls = RT::ACL->new($session{'CurrentUser'});
         $acls->LimitToObject( $Context );
         $acls->LimitToPrincipal( Id => $group->PrincipalId );
-        $acls->OrderBy( FIELD => 'RightName' ); 
 
         while ( my $ace = $acls->Next ) {
             my $right = $ace->RightName;
@@ -75,14 +74,14 @@ for my $category (@$Principals) {
   <div id="<% $id %>">
     <h3>Rights for <% $loc ? loc($display) : $display %></h3>
     <ul class="rights-list">
-% for my $right (keys %available_rights) {
+% for my $right (sort keys %available_rights) {
       <li>
         <input type="checkbox" class="checkbox"
                name="SetRights-<% $acldesc %>"
                id="SetRights-<% $acldesc %>-<% $right %>"
                value="<% $right %>"
                <% $current_rights{$obj->PrincipalId}->{$right} ? 'checked' : '' %> />
-        <label for="SetRights-<% $acldesc %>-<% $right %>">
+        <label for="SetRights-<% $acldesc %>-<% $right %>" title="<% $right %>">
           <% loc($available_rights{$right}) %>
         </label>
       </li>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list