[Rt-commit] rt branch, 4.2/format-user-for-rights, created. rt-4.1.6-295-g4358f52

Thomas Sibley trs at bestpractical.com
Mon Mar 4 22:31:47 EST 2013


The branch, 4.2/format-user-for-rights has been created
        at  4358f52f5e61481ccd5703cbb606c9bbf958819b (commit)

- Log -----------------------------------------------------------------
commit 4358f52f5e61481ccd5703cbb606c9bbf958819b
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Mar 4 19:30:55 2013 -0800

    Simply call the Format method on user objects instead of calling ShowUser

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index b2fb18b..447a4ec 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -3444,13 +3444,9 @@ sub GetPrincipalsMap {
             $Users->Limit( ALIAS => $groups, FIELD => 'Domain', VALUE => 'ACLEquivalence' );
             $Users->Limit( ALIAS => $groups, FIELD => 'Type', VALUE => 'UserEquiv' );
 
-
-            my $display = sub {
-                $m->scomp('/Elements/ShowUser', User => $_[0], NoEscape => 1)
-            };
             push @map, [
                 'Users' => $Users,  # loc_left_pair
-                $display => 0
+                'Format' => 0
             ];
         }
     }

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


More information about the Rt-commit mailing list