Fix 1462, 1468 $this instead of $object
This commit is contained in:
parent
1250804e81
commit
bada082b2b
@ -473,7 +473,7 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G
|
||||
$result = $interface->run_triggers('PROPAL_SENTBYMAIL', $object, $user, $langs, $conf);
|
||||
if ($result < 0) {
|
||||
$error ++;
|
||||
$this->errors = $interface->errors;
|
||||
$object->errors = $interface->errors;
|
||||
}
|
||||
// Fin appel triggers
|
||||
|
||||
|
||||
@ -432,12 +432,12 @@ if (empty($reshook))
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."adherent";
|
||||
$sql.= " SET fk_soc = NULL WHERE fk_soc = " . $id;
|
||||
dol_syslog(get_class($this)."::delete sql=".$sql, LOG_DEBUG);
|
||||
if (! $this->db->query($sql))
|
||||
dol_syslog(get_class($object)."::delete sql=".$sql, LOG_DEBUG);
|
||||
if (! $object->db->query($sql))
|
||||
{
|
||||
$error++;
|
||||
$this->error .= $this->db->lasterror();
|
||||
dol_syslog(get_class($this)."::delete erreur -1 ".$this->error, LOG_ERR);
|
||||
$object->error .= $object->db->lasterror();
|
||||
dol_syslog(get_class($object)."::delete erreur -1 ".$object->error, LOG_ERR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user