From 7cbeeb33c35a97b8f822fbf8c34b787c5cd72873 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 12 Apr 2023 17:46:35 +0800 Subject: [PATCH] * fix bug #33745. --- module/doc/control.php | 8 ++++---- module/doc/view/createtexttype.html.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 2ad628caa7..dfe377cb29 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -408,7 +408,7 @@ class doc extends control if(empty($lib) and $libID) $lib = $this->doc->getLibByID($libID); $objects = array(); - if($objectType == 'project') + if($linkType == 'project') { $excludedModel = $this->config->vision == 'lite' ? '' : 'kanban'; $objects = $this->project->getPairsByProgram('', 'all', false, 'order_asc', $excludedModel); @@ -421,16 +421,16 @@ class doc extends control } $this->view->executions = array(0 => '') + $this->loadModel('execution')->getPairs($objectID, 'sprint,stage', 'multiple,leaf,noprefix'); } - elseif($objectType == 'execution') + elseif($linkType == 'execution') { $execution = $this->loadModel('execution')->getById($objectID); $objects = $this->execution->getPairs($execution->project, 'sprint,stage', "multiple,leaf,noprefix"); } - elseif($objectType == 'product') + elseif($linkType == 'product') { $objects = $this->loadModel('product')->getPairs(); } - elseif($objectType == 'mine') + elseif($linkType == 'mine') { $this->lang->doc->aclList = $this->lang->doclib->mySpaceAclList; } diff --git a/module/doc/view/createtexttype.html.php b/module/doc/view/createtexttype.html.php index c8ef7ea1f8..26fdcaf4c9 100644 --- a/module/doc/view/createtexttype.html.php +++ b/module/doc/view/createtexttype.html.php @@ -65,7 +65,7 @@ doc->title?> - + doc->project;?> project : $objectID, "class='form-control picker-select' onchange=loadExecutions(this.value)");?> @@ -75,12 +75,12 @@ - + doc->execution;?> - + doc->product;?>