* Change judgment condition.
This commit is contained in:
@@ -2889,7 +2889,7 @@ class userModel extends model
|
||||
$personalData['createdBugs'] = $this->dao->select($t1Count)->from(TABLE_BUG)->alias('t1')->leftjoin(TABLE_PRODUCT)->alias('t2')->on('t1.product = t2.id')->where('t1.openedBy')->eq($account)->andWhere('t1.deleted')->eq('0')->andWhere('t2.deleted')->eq('0')->fetch('count');
|
||||
$personalData['resolvedBugs'] = $this->dao->select($t1Count)->from(TABLE_BUG)->alias('t1')->leftjoin(TABLE_PRODUCT)->alias('t2')->on('t1.product = t2.id')->where('t1.resolvedBy')->eq($account)->andWhere('t1.deleted')->eq('0')->andWhere('t2.deleted')->eq('0')->fetch('count');
|
||||
$personalData['createdCases'] = $this->dao->select($count)->from(TABLE_CASE)->where('openedBy')->eq($account)->andWhere('deleted')->eq('0')->fetch('count');
|
||||
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
|
||||
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
|
||||
{
|
||||
$personalData['createdRisks'] = $this->dao->select($t1Count)->from(TABLE_RISK)->alias('t1')->leftjoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')->where('t1.createdBy')->eq($account)->andWhere('t1.deleted')->eq('0')->andWhere('t2.deleted')->eq('0')->fetch('count');
|
||||
$personalData['resolvedRisks'] = $this->dao->select($t1Count)->from(TABLE_RISK)->alias('t1')->leftjoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')->where('t1.resolvedBy')->eq($account)->andWhere('t1.deleted')->eq('0')->andWhere('t2.deleted')->eq('0')->fetch('count');
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<tr>
|
||||
<td><?php echo html::a($executionLink, $execution->id, '', "data-app='execution'");?></td>
|
||||
<td>
|
||||
<?php if($this->config->edition== 'max' or $this->config->edition == 'ipd'):?>
|
||||
<?php if($this->config->edition == 'max' or $this->config->edition == 'ipd'):?>
|
||||
<span class='project-type-label label label-info label-outline'><?php echo zget($lang->user->executionTypeList, $execution->type);?></span>
|
||||
<?php endif;?>
|
||||
<?php echo html::a($executionLink, $execution->name, '', "data-app='execution'");?>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active executionTab'");
|
||||
}
|
||||
|
||||
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
|
||||
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
|
||||
{
|
||||
$label = "<span class='text'>{$lang->user->issue}</span>";
|
||||
$active = $methodName == 'issue' ? ' btn-active-text' : '';
|
||||
|
||||
Reference in New Issue
Block a user