Contract WIP & Contractqueue WIP 2024-04-18

This commit is contained in:
Frank Schubert
2024-04-18 14:01:02 +02:00
parent 1819b8ee9c
commit bede016157
8 changed files with 685 additions and 352 deletions

View File

@@ -212,6 +212,12 @@ class mfBaseModel {
if($this->fieldprefix && !strstr($field,"_")) {
$where=$this->fieldprefix."_id=$id";
}
if(method_exists($this, "beforeDelete")) {
// delete can be canceled
if(!$this->beforeDelete()) {
return false;
}
}
if($this->db->delete($this->table,$where)) {
if(method_exists($this, "afterDelete")) {
$this->afterDelete();