From ac1288edf9d8320cc7278a1d7456be0f5abecb69 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 10 Jul 2023 10:32:17 +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 5c02c79aee..be9d29f6b6 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->app->rawMethod != 'ajaxgetdropmenu' and !$this->cookie->showClosed)->andWhere('status')->ne('closed')->fi() + ->beginIF(defined('RUN_MODE') && RUN_MODE == 'api' && !$this->cookie->showClosed)->andWhere('status')->ne('closed')->fi() ->orderBy($orderBy) ->page($pager) ->fetchAll('id');