delete reminders on ActionComm::delete

This commit is contained in:
atm-greg 2020-09-24 15:26:35 +02:00
parent e6eff6511e
commit b269af5bf6

View File

@ -925,6 +925,18 @@ class ActionComm extends CommonObject
}
}
if (!$error)
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."actioncomm_reminder";
$sql .= " WHERE fk_actioncomm = ".$this->id;
$res = $this->db->query($sql);
if (!$res) {
$this->error = $this->db->lasterror();
$error++;
}
}
// Removed extrafields
if (!$error) {
$result = $this->deleteExtraFields();