* Finish task #41228.

This commit is contained in:
tianshujie98
2021-08-10 13:14:03 +08:00
parent 1e71901af9
commit 43f80cfc49
+1
View File
@@ -887,6 +887,7 @@ class productModel extends model
->beginIF(!$this->app->user->admin)->andWhere('t2.id')->in($this->app->user->view->projects)->fi()
->beginIF($branch)->andWhere('t1.branch')->in($branch)->fi()
->andWhere('t2.deleted')->eq('0')
->orderBy('order_asc')
->fetchPairs('id', 'name');
if($appendProject) $projects += $this->dao->select('id,name')->from(TABLE_PROJECT)->where('id')->in($appendProject)->fetchPairs('id', 'name');