lib/api

Aleksander Machniak machniak at kolabsys.com
Mon Jul 8 13:11:18 CEST 2013


 lib/api/kolab_api_service_form_value.php |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit c3c8d0783ff285a38f48f69ed4a2373dd40d9028
Author: Aleksander Machniak <alec at alec.pl>
Date:   Mon Jul 8 13:10:49 2013 +0200

    Small fix to last performance improvement

diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 26c1ed7..ce0fe56 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -1204,8 +1204,9 @@ class kolab_api_service_form_value extends kolab_api_service
         $result  = $service->users_list(null, $data);
         $list    = $result['list'];
 
-        // skip groups listing if the list if already full
-        if ($result['count'] < $data['page_size']) {
+        // skip groups listing if the list if already full,
+        // and full list was requested (no paging)
+        if (empty($keyword) && $result['count'] < $data['page_size']) {
             $data['attributes'] = array('cn', 'mail');
 
             $service = $this->controller->get_service('groups');





More information about the commits mailing list