[-] BO : limited the number of customers displayed in the group view to 100 in order to avoid memory usage error

This commit is contained in:
Damien Metzger committed 2013-09-16 09:37:58 +02:00
1 parent 81a783679d
commit 533003faa0
2 files changed
+2 -1

No files matched your search

@@ -59,6 +59,7 @@
</ul> </ul>
</fieldset> </fieldset>
<h2>{l s='Members of this customer group'}</h2> <h2>{l s='Members of this customer group'}</h2>
<p>{l s='Limited to the 100th first customers.'} {l s='Please use filters to narrow your search.'}</p>
{$customerList} {$customerList}
{/block} {/block}
+1 -1
View File
@@ -201,7 +201,7 @@ class AdminGroupsControllerCore extends AdminController
'active' => array('title' => $this->l('Enabled'),'align' => 'center', 'active' => 'status','type' => 'bool') 'active' => array('title' => $this->l('Enabled'),'align' => 'center', 'active' => 'status','type' => 'bool')
)); ));
$customer_list = $group->getCustomers(false, 0, 0, true); $customer_list = $group->getCustomers(false, 0, 100, true);
$helper = new HelperList(); $helper = new HelperList();
$helper->currentIndex = Context::getContext()->link->getAdminLink('AdminCustomers', false); $helper->currentIndex = Context::getContext()->link->getAdminLink('AdminCustomers', false);