* Fix bug #42277.
This commit is contained in:
@@ -8,7 +8,12 @@ window.clickSubmit = function()
|
||||
const parentPlan = $('input[name=parent]').val();
|
||||
const branches = $('select[name^=branch]').val();
|
||||
const title = $('input[name=title]').val();
|
||||
if(parentPlan > 0 && branches && title)
|
||||
const begin = $('input[name=begin]').val();
|
||||
const end = $('input[name=end]').val();
|
||||
const errorBegin = begin && parentBegin && begin < parentBegin;
|
||||
const errorEnd = end && parentEnd && end > parentEnd;
|
||||
|
||||
if(parentPlan > 0 && branches && title && !errorBegin && !errorEnd)
|
||||
{
|
||||
const link = $.createLink('productplan', 'ajaxGetDiffBranchesTip', "productID=" + productID + "&parentID=" + parentPlan + "&branches=" + branches.toString());
|
||||
$.get(link, function(diffBranchesTip)
|
||||
|
||||
@@ -14,6 +14,8 @@ jsVar('weekend', $config->execution->weekend);
|
||||
jsVar('productID', $product->id);
|
||||
jsVar('lastLang', $lang->productplan->last);
|
||||
jsVar('parentPlanID', $parent);
|
||||
jsVar('parentBegin', isset($parentPlan->begin) ? $parentPlan->begin : '');
|
||||
jsVar('parentEnd', isset($parentPlan->end) ? $parentPlan->end : '');
|
||||
|
||||
if($parent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user