From e56ac56ca32d9fdb3e8d8f6eb969fc7def7c6625 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 21 Dec 2022 07:58:28 +0000 Subject: [PATCH] * Resolve feedback #1807. --- 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 693334b946..cb32efbaf0 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2857,7 +2857,7 @@ EOT; } $tab = strpos(',doc,product,project,execution,', ",{$this->app->tab},") !== false ? $this->app->tab : 'doc'; - if($tab != 'doc') $this->loadModel($tab)->setMenu($objectID); + if($tab != 'doc') $this->loadModel($type)->setMenu($objectID); $this->lang->TRActions = $this->buildCollectButton4Doc(); $this->lang->TRActions .= $this->buildCreateButton4Doc($type, $objectID, $libID);