Merge branch 'master' into dev/elastic

This commit is contained in:
Aleksander Machniak 2018-01-12 11:53:09 +01:00
commit a0569164da
9 changed files with 15 additions and 12 deletions

View file

@ -4,7 +4,7 @@
"description": "Calendar plugin",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.4",
"version": "3.3.5",
"authors": [
{
"name": "Thomas Bruederli",

View file

@ -4,7 +4,7 @@
"description": "Kolab addressbook",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.3",
"version": "3.3.5",
"authors": [
{
"name": "Thomas Bruederli",

View file

@ -355,7 +355,7 @@ class rcube_kolab_contacts extends rcube_addressbook
// get members by UID
if (!empty($uids)) {
$this->_fetch_contacts($query = array(array('uid', '=', $uids)), !$fetch_all);
$this->_fetch_contacts($query = array(array('uid', '=', $uids)), $fetch_all ? false : count($uids));
$this->sortindex = array_merge($this->sortindex, $local_sortindex);
}
}
@ -363,7 +363,7 @@ class rcube_kolab_contacts extends rcube_addressbook
$ids = $this->filter['ids'];
if (count($ids)) {
$uids = array_map(array($this, 'id2uid'), $this->filter['ids']);
$this->_fetch_contacts($query = array(array('uid', '=', $uids)), true);
$this->_fetch_contacts($query = array(array('uid', '=', $uids)), count($ids));
}
}
else {
@ -1066,10 +1066,13 @@ class rcube_kolab_contacts extends rcube_addressbook
{
if (!isset($this->dataset) || !empty($query)) {
if ($limit) {
$this->storagefolder->set_order_and_limit($this->_sort_columns(), $this->page_size, ($this->list_page-1) * $this->page_size);
$size = is_int($limit) && $limit < $this->page_size ? $limit : $this->page_size;
$this->storagefolder->set_order_and_limit($this->_sort_columns(), $size, ($this->list_page-1) * $this->page_size);
}
$this->sortindex = array();
$this->dataset = $this->storagefolder->select($query);
$this->dataset = $this->storagefolder->select($query);
foreach ($this->dataset as $idx => $record) {
$contact = $this->_to_rcube_contact($record);
$this->sortindex[$idx] = $this->_sort_string($contact);

View file

@ -4,7 +4,7 @@
"description": "Kolab authentication",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.4",
"version": "3.3.5",
"authors": [
{
"name": "Thomas Bruederli",

View file

@ -4,7 +4,7 @@
"description": "User interface for Kolab File Manager (Chwala)",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.4",
"version": "3.3.5",
"authors": [
{
"name": "Aleksander Machniak",

View file

@ -4,7 +4,7 @@
"description": "Type-aware folder management/listing for Kolab",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.2",
"version": "3.3.5",
"authors": [
{
"name": "Aleksander Machniak",

View file

@ -4,7 +4,7 @@
"description": "Library providing common functions for calendaring plugins",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.4",
"version": "3.3.5",
"authors": [
{
"name": "Thomas Bruederli",

View file

@ -4,7 +4,7 @@
"description": "Plugin to setup a basic environment for the interaction with a Kolab server.",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.4",
"version": "3.3.5",
"authors": [
{
"name": "Thomas Bruederli",

View file

@ -4,7 +4,7 @@
"description": "Task management plugin",
"homepage": "https://git.kolab.org/diffusion/RPK/",
"license": "AGPLv3",
"version": "3.3.4",
"version": "3.3.5",
"authors": [
{
"name": "Thomas Bruederli",