Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms
This commit is contained in:
@@ -141,7 +141,7 @@ class branchModel extends model
|
||||
{
|
||||
if($products[$branch->product]->type == 'normal')
|
||||
{
|
||||
$branchGroups[$branch->product][0] = '';
|
||||
if(strpos($params, 'ignoreNormal') === false) $branchGroups[$branch->product][0] = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -2236,7 +2236,7 @@ class execution extends control
|
||||
$this->view->execution = $execution;
|
||||
$this->view->linkedProducts = $linkedProducts;
|
||||
$this->view->unmodifiableProducts = $unmodifiableProducts;
|
||||
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), '', $linkedBranches);
|
||||
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), 'ignoreNormal', $linkedBranches);
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -1589,7 +1589,7 @@ class project extends control
|
||||
$this->view->allProducts = $allProducts;
|
||||
$this->view->linkedProducts = $linkedProducts;
|
||||
$this->view->unmodifiableProducts = $unmodifiableProducts;
|
||||
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), '', $linkedBranches);
|
||||
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($allProducts), 'ignoreNormal', $linkedBranches);
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -107,6 +107,14 @@ $(function()
|
||||
$('#source .cell').height($('#source').height());
|
||||
$('#programBox .cell').height($('#programBox').height() - 20);
|
||||
|
||||
programBegin = $('.programParams #begin').val();
|
||||
programEnd = $('.programParams #end').val();
|
||||
setProgramBegin(programBegin);
|
||||
setProgramEnd(programEnd);
|
||||
setProjectPM();
|
||||
|
||||
setProgramByProduct($(':checkbox:checked[data-productid]'));
|
||||
|
||||
/* Select all product line events. */
|
||||
$('#checkAllLines').click(function()
|
||||
{
|
||||
@@ -131,6 +139,9 @@ $(function()
|
||||
$('#programName').val('');
|
||||
}
|
||||
|
||||
setProgramBegin(programBegin);
|
||||
setProgramEnd(programEnd);
|
||||
|
||||
/* If the project is checked, the relevant form will be displayed according to the selected mode. */
|
||||
hiddenProject();
|
||||
})
|
||||
@@ -155,6 +166,9 @@ $(function()
|
||||
$('[name^=sprints]').prop('checked', false);
|
||||
$('#programName').val('');
|
||||
}
|
||||
setProgramBegin(programBegin);
|
||||
setProgramEnd(programEnd);
|
||||
|
||||
hiddenProject();
|
||||
})
|
||||
|
||||
@@ -178,22 +192,12 @@ $(function()
|
||||
$('[name^=sprints]').prop('checked', false);
|
||||
$('#programName').val('');
|
||||
}
|
||||
programBegin = $('.programParams #begin').val();
|
||||
programEnd = $('.programParams #end').val();
|
||||
setProgramBegin(programBegin);
|
||||
setProgramEnd(programEnd);
|
||||
|
||||
hiddenProject();
|
||||
})
|
||||
|
||||
programBegin = $('.programParams #begin').val();
|
||||
programEnd = $('.programParams #end').val();
|
||||
setProgramBegin(programBegin);
|
||||
setProgramEnd(programEnd);
|
||||
setProjectPM();
|
||||
|
||||
setProgramByProduct($(':checkbox:checked[data-productid]'));
|
||||
|
||||
/* Select a product line event. */
|
||||
$('[name^=productLines]').change(function()
|
||||
{
|
||||
@@ -233,6 +237,9 @@ $(function()
|
||||
if(lineNum > checkedLineNum) checked = false;
|
||||
$('#checkAllLines').prop('checked', checked);
|
||||
|
||||
setProgramBegin(programBegin);
|
||||
setProgramEnd(programEnd);
|
||||
|
||||
/* If the project is checked, the relevant form will be displayed according to the selected mode. */
|
||||
hiddenProject();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user