FIX limit after order in get objects in category
This commit is contained in:
parent
b169508577
commit
8dd7a22482
@ -848,10 +848,10 @@ class Categorie extends CommonObject
|
|||||||
if (($type == 'customer' || $type == 'supplier') && $user->socid > 0) {
|
if (($type == 'customer' || $type == 'supplier') && $user->socid > 0) {
|
||||||
$sql .= " AND o.rowid = ".((int) $user->socid);
|
$sql .= " AND o.rowid = ".((int) $user->socid);
|
||||||
}
|
}
|
||||||
|
$sql .= $this->db->order($sortfield, $sortorder);
|
||||||
if ($limit > 0 || $offset > 0) {
|
if ($limit > 0 || $offset > 0) {
|
||||||
$sql .= $this->db->plimit($limit + 1, $offset);
|
$sql .= $this->db->plimit($limit + 1, $offset);
|
||||||
}
|
}
|
||||||
$sql .= $this->db->order($sortfield, $sortorder);
|
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::getObjectsInCateg", LOG_DEBUG);
|
dol_syslog(get_class($this)."::getObjectsInCateg", LOG_DEBUG);
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user