* Fix bug #46923.
This commit is contained in:
@@ -81,7 +81,6 @@ class product extends control
|
||||
$project = $projectID ? $this->loadModel('project')->getByID($projectID) : null;
|
||||
|
||||
/* Get stories. */
|
||||
if(in_array($browseType, array('reviewing', 'draft', 'changing'))) $browseType .= 'story';
|
||||
$stories = $this->productZen->getStories($projectID, $productID, $branchID, $moduleID, $param, $storyType, $browseType, $orderBy, $pager);
|
||||
|
||||
/* Process the sql, get the conditon partion, save it to session. */
|
||||
|
||||
@@ -2,5 +2,3 @@
|
||||
unset($lang->projectstory->featureBar['story']['changed']);
|
||||
unset($lang->projectstory->featureBar['story']['linkedExecution']);
|
||||
unset($lang->projectstory->featureBar['story']['unlinkedExecution']);
|
||||
$lang->projectstory->featureBar['story']['closedstory'] = $lang->projectstory->featureBar['story']['closed'];
|
||||
unset($lang->projectstory->featureBar['story']['closed']);
|
||||
|
||||
@@ -2,5 +2,3 @@
|
||||
unset($lang->projectstory->featureBar['story']['changed']);
|
||||
unset($lang->projectstory->featureBar['story']['linkedExecution']);
|
||||
unset($lang->projectstory->featureBar['story']['unlinkedExecution']);
|
||||
$lang->projectstory->featureBar['story']['closedstory'] = $lang->projectstory->featureBar['story']['closed'];
|
||||
unset($lang->projectstory->featureBar['story']['closed']);
|
||||
|
||||
@@ -2,5 +2,3 @@
|
||||
unset($lang->projectstory->featureBar['story']['changed']);
|
||||
unset($lang->projectstory->featureBar['story']['linkedExecution']);
|
||||
unset($lang->projectstory->featureBar['story']['unlinkedExecution']);
|
||||
$lang->projectstory->featureBar['story']['closedstory'] = $lang->projectstory->featureBar['story']['closed'];
|
||||
unset($lang->projectstory->featureBar['story']['closed']);
|
||||
|
||||
@@ -2,5 +2,3 @@
|
||||
unset($lang->projectstory->featureBar['story']['changed']);
|
||||
unset($lang->projectstory->featureBar['story']['linkedExecution']);
|
||||
unset($lang->projectstory->featureBar['story']['unlinkedExecution']);
|
||||
$lang->projectstory->featureBar['story']['closedstory'] = $lang->projectstory->featureBar['story']['closed'];
|
||||
unset($lang->projectstory->featureBar['story']['closed']);
|
||||
|
||||
@@ -344,16 +344,16 @@ class router extends baseRouter
|
||||
/* Set default story concept and init UR and SR concept. */
|
||||
$lang->URCommon = $URPairs[$config->URSR] ?? reset($URPairs);
|
||||
$lang->SRCommon = $SRPairs[$config->URSR] ?? reset($SRPairs);
|
||||
}
|
||||
|
||||
/* Replace common lang. */
|
||||
$customMenus = array();
|
||||
try
|
||||
{
|
||||
$customMenus = $this->dbQuery('SELECT * FROM' . TABLE_LANG . "WHERE `module`='common' AND `lang`='{$this->clientLang}' AND `section`='' AND `vision`='{$config->vision}'")->fetchAll();
|
||||
/* Replace common lang. */
|
||||
$customMenus = array();
|
||||
try
|
||||
{
|
||||
$customMenus = $this->dbQuery('SELECT * FROM' . TABLE_LANG . "WHERE `module`='common' AND `lang`='{$this->clientLang}' AND `section`='' AND `vision`='{$config->vision}'")->fetchAll();
|
||||
}
|
||||
catch(PDOException){}
|
||||
foreach($customMenus as $menu) if(isset($lang->{$menu->key})) $lang->{$menu->key} = $menu->value;
|
||||
}
|
||||
catch(PDOException){}
|
||||
foreach($customMenus as $menu) if(isset($lang->{$menu->key})) $lang->{$menu->key} = $menu->value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -594,6 +594,7 @@ class commonModel extends model
|
||||
foreach($menuOrder as $key => $group)
|
||||
{
|
||||
if($group != 'my' && !empty($app->user->rights['acls']['views']) && !isset($app->user->rights['acls']['views'][$group])) continue; // 后台权限分组中没有给导航视图
|
||||
if(!isset($lang->mainNav->$group)) continue;
|
||||
|
||||
$nav = $lang->mainNav->$group;
|
||||
list($title, $currentModule, $currentMethod, $vars) = explode('|', $nav);
|
||||
|
||||
@@ -271,10 +271,11 @@ class programTao extends programModel
|
||||
$summary = $this->setNoTaskExecution($projectIdList);
|
||||
/* 2. Get summary of executions to be refreshed. */
|
||||
$tasks = $this->dao->select('t1.id, execution, t1.estimate, t1.consumed, t1.`left`, t1.status')->from(TABLE_TASK)->alias('t1')
|
||||
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project=t2.id')
|
||||
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.execution = t2.id')
|
||||
->where('t1.deleted')->eq(0)
|
||||
->andWhere('t1.parent')->ge(0) // Ignore parent task.
|
||||
->beginIF(!empty($projectIdList))->andWhere('t1.project')->in($projectIdList)->fi()
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->beginIF(!empty($projectIdList))->andWhere('t2.project')->in($projectIdList)->fi()
|
||||
->fetchAll('id');
|
||||
|
||||
foreach($tasks as $task)
|
||||
|
||||
Reference in New Issue
Block a user