From 883dfcf4b84701203e44859883da1ba0a04c100e Mon Sep 17 00:00:00 2001 From: holan20180123 Date: Tue, 24 Aug 2021 17:30:24 +0800 Subject: [PATCH] * Finish task #41548. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 5fcf447678..5b597d519f 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2397,7 +2397,7 @@ EOT; if(empty($object)) die(js::locate(helper::createLink($type, 'create'))); } - $openApp = strpos('doc,product,project,execution', $this->app->openApp) !== false ? $this->app->openApp : 'doc'; + $openApp = strpos(',doc,product,project,execution,', ",{$this->app->openApp},") !== false ? $this->app->openApp : 'doc'; if($openApp != 'doc') $this->loadModel($openApp)->setMenu($objectID); $this->lang->TRActions = $this->buildCollectButton4Doc();