FIX : table llx_salary_extrafield deosn't exists for the moment

This commit is contained in:
Gauthier PC portable 024 2021-02-09 16:05:25 +01:00
parent d83914efd7
commit 3761dfe8bc

View File

@ -295,8 +295,8 @@ class Salary extends CommonObject
if ($result < 0) return -1;
// End call triggers
// Delete donation
if (!$error)
// Delete extrafields
/*if (!$error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."salary_extrafields";
$sql .= " WHERE fk_object=".$this->id;
@ -307,7 +307,7 @@ class Salary extends CommonObject
$this->errors[] = $this->db->lasterror();
$error++;
}
}
}*/
$sql = "DELETE FROM ".MAIN_DB_PREFIX."salary";
$sql .= " WHERE rowid=".$this->id;