From fea061f2a961228198e844fba352716c7bd4b6e3 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 10 Jul 2023 10:18:36 +0800 Subject: [PATCH] * Fix bug #36271. --- module/program/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/program/model.php b/module/program/model.php index d5ad4309f4..5c02c79aee 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -196,7 +196,7 @@ class programModel extends model ->beginIF($this->app->rawMethod == 'browse' and $type === 'top')->andWhere('parent')->eq(0)->fi() ->beginIF($this->app->rawMethod == 'browse' and ($type === 'child' or !$this->app->user->admin))->andWhere('id')->in($objectIdList)->fi() ->beginIF(!$this->app->user->admin and $this->app->rawMethod != 'browse')->andWhere('id')->in($userViewIdList)->fi() - ->beginIF(!$this->cookie->showClosed)->andWhere('status')->ne('closed')->fi() + ->beginIF($this->app->rawMethod != 'ajaxgetdropmenu' and !$this->cookie->showClosed)->andWhere('status')->ne('closed')->fi() ->orderBy($orderBy) ->page($pager) ->fetchAll('id');