* [task#152647] Set the button of stage when stage are baselined.
This commit is contained in:
@@ -25,6 +25,12 @@ jsVar('confirmCreateStage', $lang->project->confirmCreateStage);
|
||||
|
||||
$searchTask = strtolower($status) == 'bysearch';
|
||||
|
||||
$frozenExecutions = 0;
|
||||
foreach($executionStats as $execution)
|
||||
{
|
||||
if(!empty($execution->frozen)) $frozenExecutions ++;
|
||||
}
|
||||
|
||||
$footToolbar = array();
|
||||
$canModify = common::canModify('project', $project);
|
||||
$canBatchEdit = hasPriv('execution', 'batchEdit');
|
||||
@@ -32,7 +38,7 @@ $canBatchChangeStatus = hasPriv('execution', 'batchChangeStatus');
|
||||
$canBatchAction = $canModify && ($canBatchEdit || $canBatchChangeStatus);
|
||||
if($canBatchAction)
|
||||
{
|
||||
if($canBatchEdit)
|
||||
if($canBatchEdit && empty($frozenExecutions))
|
||||
{
|
||||
$footToolbar['items'][] = array
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user