[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-392-gb26c81e

Shawn Moore sartak at bestpractical.com
Mon Dec 6 17:18:45 EST 2010


The branch, 3.9-trunk has been updated
       via  b26c81eae3fcb723879f035de328f7ea4bdb9ea0 (commit)
      from  be0994742af91038807776e963262086c1d6b68b (commit)

Summary of changes:
 lib/RT/Groups_Overlay.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit b26c81eae3fcb723879f035de328f7ea4bdb9ea0
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Dec 6 17:12:48 2010 -0500

    Return the alias from WithMember

diff --git a/lib/RT/Groups_Overlay.pm b/lib/RT/Groups_Overlay.pm
index 252b3e2..b8da644 100755
--- a/lib/RT/Groups_Overlay.pm
+++ b/lib/RT/Groups_Overlay.pm
@@ -208,7 +208,7 @@ sub LimitToRolesForSystem {
 =head2 WithMember {PrincipalId => PRINCIPAL_ID, Recursively => undef}
 
 Limits the set of groups returned to groups which have
-Principal PRINCIPAL_ID as a member
+Principal PRINCIPAL_ID as a member. Returns the alias used for the join.
 
 =cut
 
@@ -228,6 +228,8 @@ sub WithMember {
                 ALIAS2 => $members, FIELD2 => 'GroupId');
 
     $self->Limit(ALIAS => $members, FIELD => 'MemberId', OPERATOR => '=', VALUE => $args{'PrincipalId'});
+
+    return $members;
 }
 
 sub WithoutMember {

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


More information about the Rt-commit mailing list