Browse Source

Ticket #5282 - Layout improvements.

AntonLV 10 months ago
parent
commit
2695ce2aef
1 changed files with 7 additions and 1 deletions
  1. 7 1
      modules/base/groups/classes/BxBaseModGroupsDb.php

+ 7 - 1
modules/base/groups/classes/BxBaseModGroupsDb.php

@@ -355,7 +355,7 @@ class BxBaseModGroupsDb extends BxBaseModProfileDb
                 break;
 
             case 'by_profile_id':
-            	$aMethod['params'][1] = array(
+                $aMethod['params'][1] = array(
                     'profile_id' => $aParams['profile_id']
                 );
 
@@ -366,6 +366,12 @@ class BxBaseModGroupsDb extends BxBaseModProfileDb
 
                     $sWhereClause .= " AND `tp`.`default`='1'";
                 }
+
+                if(!empty($aParams['active'])) {
+                    $aMethod['params'][1]['active'] = $aParams['active'];
+
+                    $sWhereClause .= " AND `tp`.`active`=:active";
+                }
                 break;
 
             case 'by_prpp':