Skip to content

Commit

Permalink
Code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 27, 2017
1 parent f33289e commit 1b1ce4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions htdocs/core/lib/functions.lib.php
Expand Up @@ -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
Expand Down
12 changes: 8 additions & 4 deletions htdocs/core/modules/DolibarrModules.class.php
Expand Up @@ -1489,10 +1489,14 @@ function insert_tabs()
$resql = $this->db->query($sql);
if (! $resql)
{
$err++;
$this->error = $this->db->lasterror();
$this->errors[] = $this->db->lasterror();
break;
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++;
Expand Down

0 comments on commit 1b1ce4f

Please sign in to comment.