Fixed saving edit_by in some Controllers
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user