[Rt-commit] r8035 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 28 07:06:06 EDT 2007


Author: ruz
Date: Thu Jun 28 07:05:49 2007
New Revision: 8035

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Group_Overlay.pm

Log:
* if search for groups recursively then we shouldn't list disabled
  relations

Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Group_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Group_Overlay.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Group_Overlay.pm	Thu Jun 28 07:05:49 2007
@@ -785,6 +785,12 @@
         OPERATOR => '=',
         VALUE    => $self->PrincipalId,
     );
+    $groups->Limit(
+        ALIAS => $members_alias,
+        FIELD => 'Disabled',
+        VALUE => 0,
+    ) if $args{'Recursively'};
+
     return $groups;
 }
 


More information about the Rt-commit mailing list