From 8dd7a22482dcb0a5048dce045dad04881f87cd73 Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Mon, 20 Mar 2023 09:45:02 +0100 Subject: [PATCH 1/4] FIX limit after order in get objects in category --- htdocs/categories/class/categorie.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 786af013dc6..87c0888ed6f 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -848,10 +848,10 @@ class Categorie extends CommonObject if (($type == 'customer' || $type == 'supplier') && $user->socid > 0) { $sql .= " AND o.rowid = ".((int) $user->socid); } + $sql .= $this->db->order($sortfield, $sortorder); if ($limit > 0 || $offset > 0) { $sql .= $this->db->plimit($limit + 1, $offset); } - $sql .= $this->db->order($sortfield, $sortorder); dol_syslog(get_class($this)."::getObjectsInCateg", LOG_DEBUG); $resql = $this->db->query($sql); From fe4b99387151db4ce204eba25926464900ca52d3 Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Tue, 21 Mar 2023 17:05:46 +0100 Subject: [PATCH 2/4] FIX change date on select date input when prefix is used --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 890e662f726..f10ecf5f763 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6522,7 +6522,7 @@ class Form if (empty($labeladddateof)) { $labeladddateof = $langs->trans("DateInvoice"); } - $retstring .= ' -