From e818bf732d5359ab593323b24d42b824b913146b Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Mon, 1 Sep 2025 19:55:00 +0200 Subject: [PATCH 1/2] FIX extra field list depend on parent list when editing a card (#35165) --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index b81688307b9..dc5b3f72aad 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -7693,7 +7693,7 @@ abstract class CommonObject $("#"+child_list).hide(); //Show mother lists } else if ($("#"+parent_list).val() != 0){ - $("#"+parent_list).show(); + showOptions'.$type.'(child_list, parent_list, orig_select[child_list]); } //Show the child list if the parent list value is selected $("select[name=\""+parent_list+"\"]").click(function() { From bcf6d6a7a2e0a42ff03672ea524caefe5aa7f93a Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Thu, 25 Sep 2025 11:47:51 +0200 Subject: [PATCH 2/2] FIX api orders : forward database error on failure (backpot commit d9e81cb) (#35478) --- htdocs/commande/class/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 5c38cbdf51d..eb0b6378d79 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1156,7 +1156,7 @@ class Commande extends CommonOrder } } } else { - dol_print_error($this->db); + $this->error = $this->db->lasterror(); $this->db->rollback(); return -1; }