* Fix bug of task #83954.

This commit is contained in:
hufangzhou
2023-02-14 08:49:53 +00:00
parent f12271a1f2
commit 0b89cd77d5
4 changed files with 12 additions and 4 deletions
+1
View File
@@ -275,6 +275,7 @@ class programplan extends control
$this->view->parentStageList = $this->programplan->getParentStageList($this->session->project, $planID, $plan->product);
$this->view->enableOptionalAttr = (empty($parentStage) or (!empty($parentStage) and $parentStage->attribute == 'mix'));
$this->view->isTopStage = $this->programplan->checkTopStage($planID);
$this->view->isLeafStage = $this->programplan->checkLeafStage($planID);
$this->view->PMUsers = $this->loadModel('user')->getPairs('noclosed|nodeleted|pmfirst', $plan->PM);
$this->display();
+1 -1
View File
@@ -50,7 +50,7 @@ $(function()
var currentParent = $('#parent').val();
var hasChangedAttribute = (currentAttribute && currentAttribute != 'mix' && plan.attribute != currentAttribute);
var hasChangedParent = ((isTopStage && $('#parent').val() != 0) || (!isTopStage && plan.parent != $('#parent').val()));
if(hasChangedAttribute && !hasChangedParent)
if(hasChangedAttribute && !hasChangedParent && !isLeafStage)
{
var result = confirm(changeAttrLang.replace('%s', stageTypeList[currentAttribute]));
+1
View File
@@ -16,6 +16,7 @@
<?php js::set('stageTypeList', $lang->stage->typeList);?>
<?php js::set('changeAttrLang', $lang->programplan->confirmChangeAttr);?>
<?php js::set('isTopStage', $isTopStage);?>
<?php js::set('isLeafStage', $isLeafStage);?>
<div id="mainContent" class="main-content fade">
<div class="center-block">
<div class="main-header">