forked from Wavyzz/dolibarr
Code comment
This commit is contained in:
@@ -5889,6 +5889,7 @@ function picto_from_langcode($codelang)
|
||||
* 'supplier_invoice' to add a tab in supplier invoice view
|
||||
* 'invoice' to add a tab in customer invoice view
|
||||
* 'order' to add a tab in customer order view
|
||||
* 'contract' to add a tabl in contract view
|
||||
* 'product' to add a tab in product view
|
||||
* 'propal' to add a tab in propal view
|
||||
* 'user' to add a tab in user view
|
||||
|
||||
@@ -1489,12 +1489,16 @@ class DolibarrModules // Can not be abstract, because we need to insta
|
||||
$resql = $this->db->query($sql);
|
||||
if (! $resql)
|
||||
{
|
||||
$err++;
|
||||
dol_syslog($this->db->lasterror(), LOG_ERR);
|
||||
if ($this->db->lasterrno() != 'DB_ERROR_RECORD_ALREADY_EXISTS')
|
||||
{
|
||||
$this->error = $this->db->lasterror();
|
||||
$this->errors[] = $this->db->lasterror();
|
||||
$err++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user