* [bug#58070,done,0.3h] Get the products that can be displayed on the current interface.

This commit is contained in:
hufangzhou
2024-12-16 09:14:35 +08:00
committed by 王于听
parent 66921ef6b4
commit 61dcfd85a1
+1 -1
View File
@@ -1252,7 +1252,7 @@ class programModel extends model
->andWhere('status')->ne('closed')
->beginIF(!empty($programIdList))->andWhere('program')->in($programIdList)->fi()
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->products)->fi()
->beginIF($this->config->vision)->andWhere('vision')->eq($this->config->vision)->fi()
->andWhere("FIND_IN_SET('{$this->config->vision}', vision)")
->orderBy('order_asc')
->fetchGroup('program');
}