* fix bug #30254.
This commit is contained in:
@@ -253,6 +253,7 @@ function budgetOverrunTips()
|
||||
function outOfDateTip(currentID)
|
||||
{
|
||||
if(window.ignoreTips['dateTip']) return;
|
||||
if(typeof(systemMode) != 'undefined' && systemMode == 'light') return;
|
||||
if(batchEditDateTips.includes(Number(currentID))) return;
|
||||
|
||||
var end = currentID ? $('#ends\\[' + currentID + '\\]').val() : $('#end').val();
|
||||
@@ -265,7 +266,7 @@ function outOfDateTip(currentID)
|
||||
{
|
||||
var selectedProgramID = currentID ? $("select[name='parents\[" + currentID + "\]']").val() : $('#parent').val();
|
||||
|
||||
if(selectedProgramID == 0) return;
|
||||
if(selectedProgramID == 0 || selectedProgramID == undefined) return;
|
||||
|
||||
if(typeof(projectID) == 'undefined') projectID = 0;
|
||||
projectID = currentID ? $('#projectIdList\\['+ currentID + '\\]').val() : projectID;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<?php js::set('beginLetterParent', $lang->project->beginLetterParent);?>
|
||||
<?php js::set('endGreaterParent', $lang->project->endGreaterParent);?>
|
||||
<?php js::set('LONG_TIME', LONG_TIME);?>
|
||||
<?php js::set('systemMode', $config->systemMode);?>
|
||||
<?php js::set('longTime', $lang->project->longTime);?>
|
||||
<?php js::set('ignore', $lang->project->ignore);?>
|
||||
<?php $requiredFields = $config->project->edit->requiredFields;?>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::import($jsRoot . 'misc/date.js');?>
|
||||
<?php js::set('LONG_TIME', LONG_TIME);?>
|
||||
<?php js::set('systemMode', $config->systemMode);?>
|
||||
<?php js::set('model', $model);?>
|
||||
<?php js::set('programID', $programID);?>
|
||||
<?php js::set('copyProjectID', $copyProjectID);?>
|
||||
@@ -155,7 +156,7 @@
|
||||
<div class='table-col'>
|
||||
<?php $hasBranch = $product->type != 'normal' and isset($branchGroups[$product->id]);?>
|
||||
<div class='input-group <?php if($hasBranch) echo ' has-branch';?>'>
|
||||
<span class='input-group-addon'><?php echo $lang->product->common;?></span>
|
||||
<span class='input-group-addon'><?php echo $lang->product->common;?></span>
|
||||
<?php echo html::select("products[$i]", $allProducts, $product->id, "class='form-control chosen' onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user