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