Fix: Duplicate begin

This commit is contained in:
Laurent Destailleur 2012-07-19 17:28:13 +02:00
parent 03f85bef83
commit 674aa0cf12

View File

@ -326,7 +326,7 @@ class Product extends CommonObject
{
if ($this->update($id, $user, true) > 0)
{
if ($this->catid > 0)
if ($this->catid > 0)
{
require_once(DOL_DOCUMENT_ROOT ."/categories/class/categorie.class.php");
$cat = new Categorie($this->db, $this->catid);
@ -379,7 +379,6 @@ class Product extends CommonObject
if ($result < 0) { $error++; $this->errors=$interface->errors; }
// Fin appel triggers
}
if (! $error)
{
$this->db->commit();
@ -408,8 +407,6 @@ class Product extends CommonObject
$this->db->begin();
$this->db->begin();
// Verification parametres
if (! $this->libelle) $this->libelle = 'MISSING LABEL';