1
0
Эх сурвалжийг харах

Ticket #4971 - Build-in API support: Sell membership.

AntonLV 1 жил өмнө
parent
commit
18bb43762b

+ 1 - 1
modules/base/groups/classes/BxBaseModGroupsModule.php

@@ -1139,7 +1139,7 @@ class BxBaseModGroupsModule extends BxBaseModProfileModule
             $aBlocks = [];
             $aBlocks = [];
             if(!empty($sNote))
             if(!empty($sNote))
                 $aBlocks[] = bx_api_get_msg($sNote);
                 $aBlocks[] = bx_api_get_msg($sNote);
-            $aBlocks[] = bx_api_get_block('grid', $oGrid->getCodeAPI());
+            $aBlocks[] = bx_api_get_block('pricing', $oGrid->getCodeAPI(true));
 
 
             return $aBlocks;
             return $aBlocks;
         }
         }

+ 1 - 1
modules/boonex/acl/classes/BxAclModule.php

@@ -116,7 +116,7 @@ class BxAclModule extends BxBaseModGeneralModule
 
 
             if($this->_bIsApi)
             if($this->_bIsApi)
                 return [
                 return [
-                    bx_api_get_block('grid', $oGrid->getCodeAPI())
+                    bx_api_get_block('pricing', $oGrid->getCodeAPI(true))
                 ];
                 ];
 
 
             $this->_oTemplate->addCss(['view.css']);
             $this->_oTemplate->addCss(['view.css']);