* Change judgment condition.

This commit is contained in:
Yagami
2023-05-04 18:57:45 +08:00
parent c4c20cae54
commit 5935f603f4
29 changed files with 84 additions and 84 deletions
+8 -8
View File
@@ -889,7 +889,7 @@ class customModel extends model
$enabledScrumFeatures = array();
$disabledScrumFeatures = array();
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
foreach($this->config->custom->scrumFeatures as $scrumFeature)
{
@@ -1048,7 +1048,7 @@ class customModel extends model
*/
public function hasAssetlibData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd') return $this->dao->select('*')->from(TABLE_ASSETLIB)->where('deleted')->eq(0)->count();
if($this->config->edition == 'max' or $this->config->edition == 'ipd') return $this->dao->select('*')->from(TABLE_ASSETLIB)->where('deleted')->eq(0)->count();
return false;
}
@@ -1060,7 +1060,7 @@ class customModel extends model
*/
public function hasScrumIssueData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
return $this->dao->select('t1.*')->from(TABLE_ISSUE)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')
@@ -1080,7 +1080,7 @@ class customModel extends model
*/
public function hasScrumRiskData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
return $this->dao->select('t1.*')->from(TABLE_RISK)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')
@@ -1100,7 +1100,7 @@ class customModel extends model
*/
public function hasScrumOpportunityData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
return $this->dao->select('id')->from(TABLE_OPPORTUNITY)->where('execution')->ne('0')->andWhere('deleted')->eq('0')->count();
}
@@ -1115,7 +1115,7 @@ class customModel extends model
*/
public function hasScrumMeetingData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
return $this->dao->select('id')->from(TABLE_PROJECT)->alias('t1')
->leftJoin(TABLE_MEETING)->alias('t2')->on('t1.id = t2.project')
@@ -1135,7 +1135,7 @@ class customModel extends model
*/
public function hasScrumAuditplanData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
return $this->dao->select('id')->from(TABLE_PROJECT)->alias('t1')
->leftJoin(TABLE_AUDITPLAN)->alias('t2')->on('t1.id = t2.project')
@@ -1155,7 +1155,7 @@ class customModel extends model
*/
public function hasScrumProcessData()
{
if($this->config->edition== 'max' or $this->config->edition == 'ipd')
if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
return $this->dao->select('id')->from(TABLE_PROGRAMACTIVITY)->where('execution')->ne('0')->andWhere('deleted')->eq('0')->count();
}