Fixed saving edit_by in some Controllers
This commit is contained in:
@@ -8,6 +8,15 @@ class MailtemplateDispatch extends mfBaseModel {
|
||||
private $creator;
|
||||
private $editor;
|
||||
|
||||
protected function beforeUpdate($data) {
|
||||
if(!array_key_exists("edit_by", $data)) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
$data["edit_by"] = $me->id;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function sendToRecipients($test_to_email = false) {
|
||||
$emails = [];
|
||||
|
||||
Reference in New Issue
Block a user