* Add addedBy and addedDate for create lib.

This commit is contained in:
liumengyi
2023-03-28 09:35:19 +08:00
parent a81eea24d1
commit c0feaac0d8
+3
View File
@@ -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();