From 6de28e5719c444e9b60d0f518f27e155533e183e Mon Sep 17 00:00:00 2001 From: Dylan Bourdere Date: Wed, 1 Oct 2025 13:44:19 +0200 Subject: [PATCH 1/2] Fix status commande (#35563) --- htdocs/core/class/html.formorder.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php index b7d51181310..5a3c135b3f7 100644 --- a/htdocs/core/class/html.formorder.class.php +++ b/htdocs/core/class/html.formorder.class.php @@ -108,7 +108,7 @@ class FormOrder extends Form $tmpsupplierorder = new Commande($this->db); foreach ($statustohow as $value) { - $tmpsupplierorder->statut = $value; + $tmpsupplierorder->status = $value; $options[$value] = $tmpsupplierorder->getLibStatut($short); } From 73fe50af1042c97a255881639a4138c3182ddc4c Mon Sep 17 00:00:00 2001 From: Yoan Mollard Date: Wed, 1 Oct 2025 14:48:38 +0200 Subject: [PATCH 2/2] Bugfix data validation of is_numeric for subscription start_date (#35578) --- htdocs/adherents/class/api_members.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/class/api_members.class.php b/htdocs/adherents/class/api_members.class.php index 9d2d9cda8d5..3fa27ce40fa 100644 --- a/htdocs/adherents/class/api_members.class.php +++ b/htdocs/adherents/class/api_members.class.php @@ -661,8 +661,8 @@ class Members extends DolibarrApi if (!DolibarrApiAccess::$user->hasRight('adherent', 'cotisation', 'creer')) { throw new RestException(403); } - if (is_numeric($start_date) || !is_numeric($end_date) || !is_numeric($amount)) { - throw new RestException(422, 'Malformed data'); + if (!is_numeric($start_date) || !is_numeric($end_date) || !is_numeric($amount)) { + throw new RestException(422, 'Malformed data: subscription start or end date, or subscription amount, is not numeric'); } $member = new Adherent($this->db);