diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 7746a342faa..f2266f9d171 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1174,7 +1174,7 @@ class Commande extends CommonOrder } } } else { - dol_print_error($this->db); + $this->error = $this->db->lasterror(); $this->db->rollback(); return -1; } diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index bf543d32c25..ea03e9287ed 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -8452,7 +8452,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() {