This commit is contained in:
wangyidong
2023-04-12 17:46:35 +08:00
parent bb5ced8e4d
commit 7cbeeb33c3
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -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;
}
+3 -3
View File
@@ -65,7 +65,7 @@
<th><?php echo $lang->doc->title?></th>
<td colspan='3' id='copyTitle'></td>
</tr>
<?php if($objectType == 'project'):?>
<?php if($linkType == 'project'):?>
<tr>
<th><?php echo $lang->doc->project;?></th>
<td class='required'><?php echo html::select('project', $objects, isset($execution) ? $execution->project : $objectID, "class='form-control picker-select' onchange=loadExecutions(this.value)");?></td>
@@ -75,12 +75,12 @@
<td class='pl-0px'><i class='icon icon-help' title='<?php echo $lang->doc->placeholder->execution;?>'></i></td>
<?php endif;?>
</tr>
<?php elseif($objectType == 'execution'):?>
<?php elseif($linkType == 'execution'):?>
<tr>
<th><?php echo $lang->doc->execution;?></th>
<td class='required'><?php echo html::select('execution', $objects, $objectID, "class='form-control picker-select' onchange='loadObjectModules(\"execution\", this.value)'");?></td>
</tr>
<?php elseif($objectType == 'product'):?>
<?php elseif($linkType == 'product'):?>
<tr>
<th><?php echo $lang->doc->product;?></th>
<td class='required'><?php echo html::select('product', $objects, $objectID, "class='form-control picker-select' onchange='loadObjectModules(\"product\", this.value)'");?></td>