From c0feaac0d85d20ca3b344b3fad41fa0274a5cda3 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 28 Mar 2023 09:35:19 +0800 Subject: [PATCH] * Add addedBy and addedDate for create lib. --- module/doc/model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index 99134bebda..7603204760 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -191,12 +191,15 @@ class docModel extends model */ public function createLib() { + $now = helper::now(); $lib = fixer::input('post') ->setForce('product', $this->post->type == 'product' ? $this->post->product : 0) ->setForce('project', $this->post->type == 'project' ? $this->post->project : 0) ->setForce('execution', $this->post->type == 'execution' ? $this->post->execution : 0) ->join('groups', ',') ->join('users', ',') + ->add('addedBy', $this->app->user->account) + ->add('addedDate', $now) ->remove('uid,contactListMenu,libType') ->get();