mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
fix for bug reported on the list: boinfolog::search returns only the first 15 entries, when called via xmlrpc or icalsrv
--> now this only happens if the set the start parameter, otherwise all entries are returned
This commit is contained in:
parent
347619b0d2
commit
4febf266fb
@ -464,6 +464,7 @@
|
|||||||
* @param &$query[start], &$query[total] nextmatch-parameters will be used and set if query returns less entries
|
* @param &$query[start], &$query[total] nextmatch-parameters will be used and set if query returns less entries
|
||||||
* @param $query[col_filter] array with column-name - data pairs, data == '' means no filter (!)
|
* @param $query[col_filter] array with column-name - data pairs, data == '' means no filter (!)
|
||||||
* @param $query[subs] boolean return subs or not, if unset the user preference is used
|
* @param $query[subs] boolean return subs or not, if unset the user preference is used
|
||||||
|
* @param $query[num_rows] number of rows to return if $query[start] is set, default is to use the value from the general prefs
|
||||||
* @return array with id's as key of the matching log-entries
|
* @return array with id's as key of the matching log-entries
|
||||||
*/
|
*/
|
||||||
function search(&$query)
|
function search(&$query)
|
||||||
@ -581,7 +582,8 @@
|
|||||||
{
|
{
|
||||||
$count_subs = ",(SELECT count(*) FROM $this->info_table sub WHERE sub.info_id_parent=main.info_id AND $acl_filter) AS info_anz_subs";
|
$count_subs = ",(SELECT count(*) FROM $this->info_table sub WHERE sub.info_id_parent=main.info_id AND $acl_filter) AS info_anz_subs";
|
||||||
}
|
}
|
||||||
$this->db->limit_query($sql="SELECT $distinct main.* $count_subs $sql_query $ordermethod",$query['start'],__LINE__,__FILE__);
|
$this->db->query($sql="SELECT $distinct main.* $count_subs $sql_query $ordermethod",__LINE__,__FILE__,
|
||||||
|
(int) $query['start'],isset($query['start']) ? (int) $query['num_rows'] : -1);
|
||||||
//echo "<p>sql='$sql'</p>\n";
|
//echo "<p>sql='$sql'</p>\n";
|
||||||
while (($info =& $this->db->row(true)))
|
while (($info =& $this->db->row(true)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user