Contract WIP & Contractqueue WIP 2024-04-18
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user