* Fix bug in review code.

This commit is contained in:
wangyuting2
2022-09-29 05:50:16 +00:00
parent a12d3229b3
commit d33cc87da9
2 changed files with 3 additions and 3 deletions

View File

@@ -224,7 +224,7 @@ class router extends baseRouter
/* User preference init. */
$config->URSR = $URSR;
$config->URAndSR = $URAndSR && strpos(",{$disabledFeatures},", ',URStory,') === false;
$config->URAndSR = ($URAndSR and strpos(",{$disabledFeatures},", ',URStory,') === false);
$config->programLink = 'program-browse';
$config->productLink = 'product-all';
$config->projectLink = 'project-browse';

View File

@@ -992,7 +992,7 @@ class customModel extends model
{
if($this->config->edition == 'max')
{
return $this->dao->select('id')->from(TABLE_EXECUTION)->alias('t1')
return $this->dao->select('id')->from(TABLE_PROJECT)->alias('t1')
->leftJoin(TABLE_MEETING)->alias('t2')->on('t1.id = t2.project')
->where('t1.model')->eq('scrum')
->andWhere('t1.deleted')->eq('0')
@@ -1012,7 +1012,7 @@ class customModel extends model
{
if($this->config->edition == 'max')
{
return $this->dao->select('id')->from(TABLE_EXECUTION)->alias('t1')
return $this->dao->select('id')->from(TABLE_PROJECT)->alias('t1')
->leftJoin(TABLE_AUDITPLAN)->alias('t2')->on('t1.id = t2.project')
->where('t1.model')->eq('scrum')
->andWhere('t1.deleted')->eq('0')