Merge branch 'fronkdev' into 'master'

Fixed saving edit_by in some Controllers

See merge request fronk/thetool!946
This commit is contained in:
Frank Schubert
2025-01-24 14:05:35 +00:00
53 changed files with 556 additions and 61 deletions
+10
View File
@@ -21,6 +21,16 @@ class Preorder extends mfBaseModel {
private $logistics;
private $history;
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 afterLoad() {
if($this->uid === "string") {
$this->uid = "";