FIX : delete contract extrafields on contract deletion

This commit is contained in:
florian HENRY 2016-11-30 16:02:55 +01:00
parent 196428edf5
commit 5b6d5df159

View File

@ -1134,6 +1134,16 @@ class Contrat extends CommonObject
} }
} }
// Removed extrafields
if (! $error) {
$result=$this->deleteExtraFields();
if ($result < 0)
{
$error++;
dol_syslog(get_class($this)."::delete error -3 ".$this->error, LOG_ERR);
}
}
if (! $error) if (! $error)
{ {
// We remove directory // We remove directory