From e3a75c6b80f70da60062b047a3a8d0ff80211318 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 17 Feb 2023 11:48:07 +0800 Subject: [PATCH] * fix bug #32246. --- module/story/control.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index f250c59c9a..4cd98642b9 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -26,6 +26,8 @@ class story extends control $this->loadModel('tree'); $this->loadModel('user'); $this->loadModel('action'); + + if($this->app->rawModule == 'projectstory') $this->app->tab = 'project'; } /** @@ -1432,10 +1434,10 @@ class story extends control if(!empty($product->shadow)) { $projectInfo = $this->dao->select('t2.model, t2.multiple')->from(TABLE_PROJECTPRODUCT)->alias('t1') - ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') - ->where('t1.product')->eq($product->id) - ->andWhere('t2.type')->eq('project') - ->fetch(); + ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') + ->where('t1.product')->eq($product->id) + ->andWhere('t2.type')->eq('project') + ->fetch(); if($projectInfo->model == 'waterfall') {