Merge branch '12.x' of github.com:easysoft/zentaopms into 12.x
This commit is contained in:
@@ -2503,7 +2503,7 @@ class bugModel extends model
|
||||
public function printCell($col, $bug, $users, $builds, $branches, $modulePairs, $projects = array(), $plans = array(), $stories = array(), $tasks = array(), $mode = 'datatable')
|
||||
{
|
||||
/* Check the product is closed. */
|
||||
$isClosedProject = common::checkParentObjectClosed('bug', $bug);
|
||||
$changeAllowed = common::checkObjectChangeAllowed('bug', $bug);
|
||||
|
||||
$canBatchEdit = common::hasPriv('bug', 'batchEdit');
|
||||
$canBatchConfirm = common::hasPriv('bug', 'batchConfirm');
|
||||
@@ -2574,7 +2574,7 @@ class bugModel extends model
|
||||
case 'id':
|
||||
if($canBatchAction)
|
||||
{
|
||||
$disabled = $isClosedProject ? 'disabled' : '';
|
||||
$disabled = $changeAllowed ? '' : 'disabled';
|
||||
echo html::checkbox('bugIDList', array($bug->id => ''), '', $disabled) . html::a(helper::createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));
|
||||
}
|
||||
else
|
||||
@@ -2726,7 +2726,7 @@ class bugModel extends model
|
||||
echo substr($bug->lastEditedDate, 5, 11);
|
||||
break;
|
||||
case 'actions':
|
||||
if(!$isClosedProject)
|
||||
if($changeAllowed)
|
||||
{
|
||||
$params = "bugID=$bug->id";
|
||||
common::printIcon('bug', 'confirmBug', $params, $bug, 'list', 'confirm', '', 'iframe', true);
|
||||
|
||||
Reference in New Issue
Block a user