* Fix bug of task #89144.

This commit is contained in:
liumengyi
2023-03-30 14:33:33 +08:00
parent f1f9a33779
commit aeb24656f9
7 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -195,8 +195,8 @@ class docModel extends model
{
$lib = fixer::input('post')
->setForce('product', ($this->post->type == 'product' and !empty($_POST['product'])) ? $this->post->product : 0)
->setForce('project', ($this->post->type == 'project' and !empty($_POST['product'])) ? $this->post->project : 0)
->setForce('execution', ($this->post->type == 'execution' or !empty($_POST['execution'])) ? $this->post->execution : 0)
->setForce('project', ($this->post->type == 'project' and !empty($_POST['project'])) ? $this->post->project : 0)
->setForce('execution', ($this->post->libType != 'api' and !empty($_POST['execution'])) ? $this->post->execution : 0)
->join('groups', ',')
->join('users', ',')
->add('addedBy', $this->app->user->account)