roman.lesnikov@gmail.com 3 rokov pred
rodič
commit
5d2501d3b9

+ 1 - 1
template/scripts/BxBaseProfileSearchResult.php

@@ -63,7 +63,7 @@ class BxBaseProfileSearchResult extends BxTemplSearchResult
                     'joinFields' => [],
                 ],
             ],
-            'paginate' => ['start' => 0],
+            'paginate' => ['start' => 0, 'perPage' => BX_DOL_SEARCH_RESULTS_PER_PAGE_DEFAULT],
             'sorting' => 'last',
             'ident' => 'id'
         ];

+ 3 - 1
template/scripts/BxBaseRecommendation.php

@@ -76,7 +76,9 @@ class BxBaseRecommendation extends BxDolRecommendation
         if(!$iPerPage)
             $iPerPage = $this->_iPerPageDefault;
 
-        $aItems = $this->_oDb->get($iProfileId, $this->_aObject['id'], $iStart, $iPerPage);
+        $aItems = [];
+        if (!defined('BX_API_PAGE'))
+            $aItems = $this->_oDb->get($iProfileId, $this->_aObject['id'], $iStart, $iPerPage);
 
         $aData = [];
         foreach($aItems as $iId => $iCount)