* Finish task #8378.
This commit is contained in:
@@ -117,7 +117,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if(empty($this->config->global->closedProductStatus) or $product->status != 'closed'):?>
|
||||
<?php if(!empty($this->config->CRProduct) or $product->status != 'closed'):?>
|
||||
<?php if(!common::checkNotCN()):?>
|
||||
<?php
|
||||
common::printLink('bug', 'batchCreate', "productID=$productID&branch=$branch&projectID=0&moduleID=$moduleID", "<i class='icon icon-plus'></i>" . $lang->bug->batchCreate, '', "class='btn btn-secondary'");
|
||||
@@ -189,7 +189,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
|
||||
<div class="table-empty-tip">
|
||||
<p>
|
||||
<span class="text-muted"><?php echo $lang->bug->noBug;?></span>
|
||||
<?php if((empty($this->config->global->closedProductStatus) or $product->status != 'closed') and common::hasPriv('bug', 'create')):?>
|
||||
<?php if((!empty($this->config->CRProduct) or $product->status != 'closed') and common::hasPriv('bug', 'create')):?>
|
||||
<?php echo html::a($this->createLink('bug', 'create', "productID=$productID&branch=$branch&extra=moduleID=$moduleID"), "<i class='icon icon-plus'></i> " . $lang->bug->create, '', "class='btn btn-info'");?>
|
||||
<?php endif;?>
|
||||
</p>
|
||||
@@ -211,7 +211,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
|
||||
$widths = $this->datatable->setFixedFieldWidth($setting);
|
||||
$columns = 0;
|
||||
|
||||
$canBeChanged = (empty($config->global->closedProductStatus) or $product->status != 'closed');
|
||||
$canBeChanged = (!empty($config->CRProduct) or $product->status != 'closed');
|
||||
$canBatchEdit = ($canBeChanged and common::hasPriv('bug', 'batchEdit'));
|
||||
$canBatchConfirm = ($canBeChanged and common::hasPriv('bug', 'batchConfirm'));
|
||||
$canBatchClose = common::hasPriv('bug', 'batchClose');
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
<?php if(!isonlybody()):?>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php if(empty($this->config->global->closedProductStatus) or $product->status != 'closed'):?>
|
||||
<?php if(!empty($this->config->CRProduct) or $product->status != 'closed'):?>
|
||||
<?php common::printLink('bug', 'create', "productID={$bug->product}&branch={$bug->branch}&extra=moduleID={$bug->module}", "<i class='icon icon-plus'></i>" . $lang->bug->create, '', "class='btn btn-primary'"); ?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user