2
0
forked from Wavyzz/dolibarr

Code comment

This commit is contained in:
Laurent Destailleur
2017-08-27 19:40:43 +02:00
parent f33289ed6a
commit 1b1ce4fdf5
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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++;
}
}