Просмотр исходного кода

Ticket #4750 - Connections: Different counts for the same item on different pages.

AntonLV 2 лет назад
Родитель
Сommit
51c7ef34e7
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      inc/classes/BxDolModuleQuery.php

+ 4 - 3
inc/classes/BxDolModuleQuery.php

@@ -127,17 +127,17 @@ class BxDolModuleQuery extends BxDolDb implements iBxDolSingleton
                 break;
 
             case 'modules_subtypes':
-                $sPostfix .= '_modules_subtypes_' . implode('_', $aParams['value']);
+                $sPostfix .= '_modules_subtypes_';
 
                 if(isset($aParams['id_as_key']) && $aParams['id_as_key'] === true) {
-                    $sPostfix .= 'id_as_key';
+                    $sPostfix .= 'id_as_key_';
                             
                     $aMethod['name'] = 'getAllWithKey';
                     $aMethod['params'][1] = 'id';
                 }
 
                 if(isset($aParams['name_as_key']) && $aParams['name_as_key'] === true) {
-                    $sPostfix .= 'name_as_key';
+                    $sPostfix .= 'name_as_key_';
 
                     $aMethod['name'] = 'getAllWithKey';
                     $aMethod['params'][1] = 'name';
@@ -146,6 +146,7 @@ class BxDolModuleQuery extends BxDolDb implements iBxDolSingleton
                 if(!is_array($aParams['value']))
                     $aParams['value'] = [$aParams['value']];
 
+                $sPostfix .= implode('_', $aParams['value']);
                 $aBindings['type'] = BX_DOL_MODULE_TYPE_MODULE;
 
                 $iSubtypes = 0;