This commit is contained in:
Laurent Destailleur 2015-03-22 14:23:49 +01:00
parent 2f34a5351c
commit aa5ffa0bf2

View File

@ -106,11 +106,11 @@ class Skeleton_Class extends CommonObject
if (! $notrigger) if (! $notrigger)
{ {
// Uncomment this and change MYOBJECT to your own tag if you // Uncomment this and change MYOBJECT to your own tag if you
// want this action calls a trigger. // want this action to call a trigger.
//// Call triggers //// Call triggers
//$result=$this->call_trigger('MYOBJECT_CREATE',$user); //$result=$this->call_trigger('MYOBJECT_CREATE',$user);
//if ($result < 0) { $error++; //Do also what you must do to rollback action if trigger fail} //if ($result < 0) $error++;
//// End call triggers //// End call triggers
} }
} }
@ -118,11 +118,6 @@ class Skeleton_Class extends CommonObject
// Commit or rollback // Commit or rollback
if ($error) if ($error)
{ {
foreach($this->errors as $errmsg)
{
dol_syslog(__METHOD__." ".$errmsg, LOG_ERR);
$this->error.=($this->error?', '.$errmsg:$errmsg);
}
$this->db->rollback(); $this->db->rollback();
return -1*$error; return -1*$error;
} }
@ -435,7 +430,8 @@ class Skeleton_Class extends CommonObject
} }
class Skeleton_ClassLine { class Skeleton_ClassLine
{
var $id; var $id;
var $prop1; var $prop1;
var $prop2; var $prop2;