diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 87eafbe531c..8b6a66fcaea 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1182,7 +1182,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 2463e47ca90..20e650fbdef 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -8305,7 +8305,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() {