* Fix bug of task #83954.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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]));
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user