* Finish task #8379.

This commit is contained in:
holan20180123
2020-11-17 13:17:15 +08:00
parent fd6502b596
commit 97770dd00f
41 changed files with 338 additions and 338 deletions
+3 -3
View File
@@ -1409,7 +1409,7 @@ class testcaseModel extends model
public function printCell($col, $case, $users, $branches, $modulePairs = array(), $browseType = '', $mode = 'datatable')
{
/* Check the product is closed. */
$changeAllowed = common::checkObjectChangeAllowed('case', $case);
$canBeChanged = common::checkObjectChangeAllowed('case', $case);
$canBatchRun = common::hasPriv('testtask', 'batchRun');
$canBatchEdit = common::hasPriv('testcase', 'batchEdit');
@@ -1450,7 +1450,7 @@ class testcaseModel extends model
case 'id':
if($canBatchAction)
{
$disabled = $changeAllowed ? '' : 'disabled';
$disabled = $canBeChanged ? '' : 'disabled';
echo html::checkbox('caseIDList', array($case->id => ''), '', $disabled) . html::a(helper::createLink('testcase', 'view', "caseID=$case->id"), sprintf('%03d', $case->id));
}
else
@@ -1547,7 +1547,7 @@ class testcaseModel extends model
echo $case->stepNumber;
break;
case 'actions':
if($changeAllowed)
if($canBeChanged)
{
if($case->needconfirm or $browseType == 'needconfirm')
{