Fix: Bad error management

This commit is contained in:
Laurent Destailleur 2013-06-09 15:59:51 +02:00
parent bd4ca9f1ed
commit e85b72e452

View File

@ -986,8 +986,7 @@ class CommandeFournisseur extends CommonOrder
); );
if ($result < 0) if ($result < 0)
{ {
$this->error=$this->db->lasterror(); dol_syslog(get_class($this)."::create ".$this->error, LOG_WARNING); // do not use dol_print_error here as it may be a functionnal error
dol_print_error($this->db);
$this->db->rollback(); $this->db->rollback();
return -1; return -1;
} }