Manage Extrafields deletion for contact

This commit is contained in:
fhenry 2012-12-16 23:18:20 +01:00
parent a83329f6c1
commit 2d2aaad1b0

View File

@ -745,6 +745,12 @@ class Contact extends CommonObject
$this->error=$this->db->error().' sql='.$sql;
}
}
// Removed extrafields
if ((! $error) && (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED))) { // For avoid conflicts if trigger used
$result=$this->deleteExtraFields($this);
if ($result < 0) $error++;
}
if (! $error && ! $notrigger)
{