diff --git a/module/execution/model.php b/module/execution/model.php
index 8bfbdf1b6b..6484aaac75 100755
--- a/module/execution/model.php
+++ b/module/execution/model.php
@@ -444,7 +444,7 @@ class executionModel extends model
if(!empty($sprint->percent) and isset($this->config->setPercent) and $this->config->setPercent == 1) $this->checkWorkload('create', $sprint->percent, $sprint->project);
/* Set planDuration and realDuration. */
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$sprint->planDuration = $this->loadModel('programplan')->getDuration($sprint->begin, $sprint->end);
if(!empty($sprint->realBegan) and !empty($sprint->realEnd)) $sprint->realDuration = $this->loadModel('programplan')->getDuration($sprint->realBegan, $sprint->realEnd);
@@ -636,7 +636,7 @@ class executionModel extends model
if(!empty($execution->percent) and isset($this->config->setPercent) and $this->config->setPercent == 1) $this->checkWorkload('update', $execution->percent, $oldExecution);
/* Set planDuration and realDuration. */
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$execution->planDuration = $this->loadModel('programplan')->getDuration($execution->begin, $execution->end);
if(!empty($execution->realBegan) and !empty($execution->realEnd)) $execution->realDuration = $this->programplan->getDuration($execution->realBegan, $execution->realEnd);
diff --git a/module/group/control.php b/module/group/control.php
index bef0153558..45dd3dee99 100644
--- a/module/group/control.php
+++ b/module/group/control.php
@@ -237,7 +237,7 @@ class group extends control
$changelogs = ',' . join(',', $changelog) . ',';
$this->lang->custom->common = $this->lang->group->config;
- if($this->config->edition == 'max' and $this->config->vision == 'rnd' and isset($this->lang->baseline)) $this->lang->baseline->common = $this->lang->group->docTemplate;
+ if(($this->config->edition == 'max' or $this->config->edition == 'ipd') and $this->config->vision == 'rnd' and isset($this->lang->baseline)) $this->lang->baseline->common = $this->lang->group->docTemplate;
$modules = $this->group->getPrivManagerPairs('module', $menu);
diff --git a/module/install/model.php b/module/install/model.php
index d1272efb48..72792faa6a 100644
--- a/module/install/model.php
+++ b/module/install/model.php
@@ -533,7 +533,7 @@ class installModel extends model
}
}
- if($this->config->edition == 'max')
+ if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
/* Update process by lang. */
foreach($this->lang->install->processList as $id => $name)
diff --git a/module/my/control.php b/module/my/control.php
index 38344fd394..61ec981a10 100755
--- a/module/my/control.php
+++ b/module/my/control.php
@@ -980,7 +980,7 @@ EOF;
}
$this->view->flows = array();
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$this->app->loadLang('approval');
$this->view->flows = $this->dao->select('module,name')->from(TABLE_WORKFLOW)->where('buildin')->eq(0)->fetchPairs('module', 'name');
diff --git a/module/personnel/model.php b/module/personnel/model.php
index 6ef91886f3..d3b7c07277 100644
--- a/module/personnel/model.php
+++ b/module/personnel/model.php
@@ -130,7 +130,7 @@ class personnelModel extends model
$executionPairs = $this->getInvolvedExecutions($projects);
$taskInvest = $this->getProjectTaskInvest($projects, $accountPairs);
$bugAndStoryInvest = $this->getBugAndStoryInvest($accountPairs, $programID);
- if($this->config->edition == 'max')
+ if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
$issueInvest = $this->getIssueInvest($accountPairs, $projects);
$riskInvest = $this->getRiskInvest($accountPairs, $projects);
@@ -153,7 +153,7 @@ class personnelModel extends model
$personnelList[$user->role][$account] += $taskInvest[$account];
$personnelList[$user->role][$account] += $bugAndStoryInvest[$account];
- if($this->config->edition == 'max')
+ if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
$personnelList[$user->role][$account] += $issueInvest[$account];
$personnelList[$user->role][$account] += $riskInvest[$account];
diff --git a/module/personnel/view/invest.html.php b/module/personnel/view/invest.html.php
index 2c3e7b6f2d..ddab49b313 100644
--- a/module/personnel/view/invest.html.php
+++ b/module/personnel/view/invest.html.php
@@ -29,7 +29,7 @@
personnel->task;?> |
personnel->bug;?> |
URAndSR ? "colspan='2'" : "rowspan='2'";?> class="c-story">personnel->createStories;?> |
- config->edition == 'max'): ?>
+ config->edition == 'max' or $this->config->edition == 'ipd'): ?>
personnel->issue;?> |
personnel->risk;?> |
@@ -47,7 +47,7 @@
personnel->UR;?> |
personnel->SR;?> |
- config->edition == 'max'): ?>
+ config->edition == 'max' or $this->config->edition == 'ipd'): ?>
personnel->created;?> |
personnel->resolved;?> |
personnel->wait;?> |
@@ -77,7 +77,7 @@
|
|
- config->edition == 'max'): ?>
+ config->edition == 'max' or $this->config->edition == 'ipd'): ?>
|
|
|
diff --git a/module/programplan/model.php b/module/programplan/model.php
index 97899d5f98..7d191a0988 100755
--- a/module/programplan/model.php
+++ b/module/programplan/model.php
@@ -868,7 +868,7 @@ class programplanModel extends model
foreach($datas as $data)
{
/* Set planDuration and realDuration. */
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$data->planDuration = $this->getDuration($data->begin, $data->end);
$data->realDuration = $this->getDuration($data->realBegan, $data->realEnd);
@@ -1148,7 +1148,7 @@ class programplanModel extends model
}
/* Set planDuration and realDuration. */
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$plan->planDuration = $this->getDuration($plan->begin, $plan->end);
$plan->realDuration = $this->getDuration($plan->realBegan, $plan->realEnd);
diff --git a/module/project/control.php b/module/project/control.php
index bf10ebc8fb..0fc80faaaf 100755
--- a/module/project/control.php
+++ b/module/project/control.php
@@ -1017,7 +1017,7 @@ class project extends control
$this->session->set('testtaskList', $uri, 'qa');
$this->session->set('reportList', $uri, 'qa');
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$this->session->set('riskList', $uri, 'project');
$this->session->set('issueList', $uri, 'project');
diff --git a/module/project/model.php b/module/project/model.php
index 6ceeb87ee9..2c52cc791a 100644
--- a/module/project/model.php
+++ b/module/project/model.php
@@ -3017,7 +3017,7 @@ class projectModel extends model
public function checkCanChangeModel($projectID, $model)
{
$checkList = $this->config->project->checkList->$model;
- if($this->config->edition == 'max') $checkList = $this->config->project->maxCheckList->$model;
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd') $checkList = $this->config->project->maxCheckList->$model;
foreach($checkList as $module)
{
if($module == '') continue;
diff --git a/module/search/model.php b/module/search/model.php
index 82e4b2d8fa..23d3cb28f7 100644
--- a/module/search/model.php
+++ b/module/search/model.php
@@ -759,12 +759,12 @@ class searchModel extends model
$table = $this->config->objectTables[$module];
$fields = '';
- if($module == 'issue') $fields = $this->config->edition == 'max' ? 'id,project,owner,lib' : 'id,project,owner';
+ if($module == 'issue') $fields = ($this->config->edition == 'max' or $this->config->edition == 'ipd') ? 'id,project,owner,lib' : 'id,project,owner';
if($module == 'project') $fields = 'id,model';
if($module == 'execution')$fields = 'id,type,project';
- if($module == 'story' or $module == 'requirement') $fields = $this->config->edition == 'max' ? 'id,type,lib' : 'id,type';
- if(($module == 'risk' or $module == 'opportunity') and $this->config->edition == 'max') $fields = 'id,lib';
- if($module == 'doc' and $this->config->edition == 'max') $fields = 'id,assetLib,assetLibType';
+ if($module == 'story' or $module == 'requirement') $fields = ($this->config->edition == 'max' or $this->config->edition == 'ipd') ? 'id,type,lib' : 'id,type';
+ if(($module == 'risk' or $module == 'opportunity') and ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $fields = 'id,lib';
+ if($module == 'doc' and ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $fields = 'id,assetLib,assetLibType';
if(empty($fields)) continue;
$objectList[$module] = $this->dao->select($fields)->from($table)->where('id')->in($idList)->fetchAll('id');
@@ -831,7 +831,7 @@ class searchModel extends model
$record->extraType = isset($story->type) ? $story->type : '';
}
- elseif(($module == 'risk' or $module == 'opportunity') and $this->config->edition == 'max')
+ elseif(($module == 'risk' or $module == 'opportunity') and ($this->config->edition == 'max' or $this->config->edition == 'ipd'))
{
$object = $objectList[$module][$record->objectID];
if(!empty($object->lib))
@@ -842,7 +842,7 @@ class searchModel extends model
$record->url = helper::createLink($module, $method, "id={$record->objectID}", '', false, 0, true);
}
- elseif($module == 'doc' and $this->config->edition == 'max')
+ elseif($module == 'doc' and ($this->config->edition == 'max' or $this->config->edition == 'ipd'))
{
$doc = $objectList['doc'][$record->objectID];
if(!empty($doc->assetLib))
diff --git a/module/story/model.php b/module/story/model.php
index ebd3bd1cc7..dafecf6396 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -5503,7 +5503,7 @@ class storyModel extends model
$stories[$id]->cases = $this->loadModel('testcase')->getStoryCases($id);
$stories[$id]->bugs = $this->loadModel('bug')->getStoryBugs($id);
$stories[$id]->tasks = $this->loadModel('task')->getStoryTasks($id);
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$stories[$id]->designs = $this->dao->select('id, name')->from(TABLE_DESIGN)
->where('story')->eq($id)
@@ -5577,7 +5577,7 @@ class storyModel extends model
$stories[$id]->cases = $this->loadModel('testcase')->getStoryCases($id);
$stories[$id]->bugs = $this->loadModel('bug')->getStoryBugs($id);
$stories[$id]->tasks = $this->loadModel('task')->getStoryTasks($id, 0, $projectID);
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$stories[$id]->designs = $this->dao->select('id, name')->from(TABLE_DESIGN)
->where('story')->eq($id)
@@ -5621,7 +5621,7 @@ class storyModel extends model
$track[$id]->bug = $this->loadModel('bug')->getStoryBugs($id);
$track[$id]->story = $this->getByID($id);
$track[$id]->task = $this->loadModel('task')->getStoryTasks($id);
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$track[$id]->design = $this->dao->select('id, name')->from(TABLE_DESIGN)
->where('story')->eq($id)
diff --git a/module/task/model.php b/module/task/model.php
index ba3aee97d6..d6382648ba 100755
--- a/module/task/model.php
+++ b/module/task/model.php
@@ -793,7 +793,7 @@ class taskModel extends model
$this->action->logHistory($actionID, $changes);
}
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldParentTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldParentTask->feedback, $newParentTask->status, $oldParentTask->status);
+ if(($this->config->edition != 'open') && $oldParentTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldParentTask->feedback, $newParentTask->status, $oldParentTask->status);
}
}
else
@@ -1304,7 +1304,7 @@ class taskModel extends model
unset($oldTask->parent);
unset($task->parent);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
+ if($this->config->edition != 'open' && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
if(isset($oldTask->team))
{
$users = $this->loadModel('user')->getPairs('noletter|noempty');
@@ -1532,8 +1532,6 @@ class taskModel extends model
}
}
- $isBiz = $this->config->edition == 'biz';
- $isMax = $this->config->edition == 'max';
foreach($tasks as $taskID => $task)
{
if(strpos(',doing,pause,', $task->status) && empty($teams) && $task->parent >= 0 && empty($task->left))
@@ -1593,7 +1591,7 @@ class taskModel extends model
if($task->status == 'done') $this->loadModel('score')->create('task', 'finish', $taskID);
if($task->status == 'closed') $this->loadModel('score')->create('task', 'close', $taskID);
if($task->status != $oldTask->status) $this->loadModel('kanban')->updateLane($oldTask->execution, 'task', $oldTask->id);
- if(($isBiz || $isMax) && $oldTask->feedback && !isset($feedbacks[$oldTask->feedback]))
+ if($this->config->edition != 'open' && $oldTask->feedback && !isset($feedbacks[$oldTask->feedback]))
{
$feedbacks[$oldTask->feedback] = $oldTask->feedback;
$this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
@@ -1839,7 +1837,7 @@ class taskModel extends model
$this->loadModel('kanban');
if(!isset($output['toColID']) or $task->status == 'done') $this->kanban->updateLane($oldTask->execution, 'task', $taskID);
if(isset($output['toColID']) and $task->status == 'doing') $this->kanban->moveCard($taskID, $output['fromColID'], $output['toColID'], $output['fromLaneID'], $output['toLaneID']);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
+ if($this->config->edition != 'open' && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
if(!dao::isError()) return common::createChanges($oldTask, $task);
}
@@ -2139,7 +2137,7 @@ class taskModel extends model
if(isset($output['toColID'])) $this->kanban->moveCard($taskID, $output['fromColID'], $output['toColID'], $output['fromLaneID'], $output['toLaneID']);
}
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
+ if($this->config->edition != 'open' && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
return common::createChanges($oldTask, $task);
}
@@ -2225,7 +2223,7 @@ class taskModel extends model
if(!isset($output['toColID'])) $this->kanban->updateLane($oldTask->execution, 'task', $taskID);
if(isset($output['toColID'])) $this->kanban->moveCard($taskID, $output['fromColID'], $output['toColID'], $output['fromLaneID'], $output['toLaneID']);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
+ if($this->config->edition != 'open' && $oldTask->feedback) $this->loadModel('feedback')->updateStatus('task', $oldTask->feedback, $task->status, $oldTask->status);
return common::createChanges($oldTask, $task);
}
@@ -2519,7 +2517,7 @@ class taskModel extends model
if(is_string($type)) $type = strtolower($type);
$orderBy = str_replace('pri_', 'priOrder_', $orderBy);
$fields = "DISTINCT t1.*, t2.id AS storyID, t2.title AS storyTitle, t2.product, t2.branch, t2.version AS latestStoryVersion, t2.status AS storyStatus, t3.realname AS assignedToRealName, IF(t1.`pri` = 0, {$this->config->maxPriValue}, t1.`pri`) as priOrder";
- $this->config->edition == 'max' && $fields .= ', t6.name as designName, t6.version as latestDesignVersion';
+ ($this->config->edition == 'max' or $this->config->edition == 'ipd') && $fields .= ', t6.name as designName, t6.version as latestDesignVersion';
$actionIDList = array();
if($type == 'assignedbyme') $actionIDList = $this->dao->select('objectID')->from(TABLE_ACTION)->where('objectType')->eq('task')->andWhere('action')->eq('assigned')->andWhere('actor')->eq($this->app->user->account)->fetchPairs('objectID', 'objectID');
@@ -2530,7 +2528,7 @@ class taskModel extends model
->leftJoin(TABLE_USER)->alias('t3')->on('t1.assignedTo = t3.account')
->leftJoin(TABLE_TASKTEAM)->alias('t4')->on('t4.task = t1.id')
->leftJoin(TABLE_MODULE)->alias('t5')->on('t1.module = t5.id')
- ->beginIF($this->config->edition == 'max')->leftJoin(TABLE_DESIGN)->alias('t6')->on('t1.design= t6.id')->fi()
+ ->beginIF($this->config->edition == 'max' or $this->config->edition == 'ipd')->leftJoin(TABLE_DESIGN)->alias('t6')->on('t1.design= t6.id')->fi()
->where('t1.execution')->eq((int)$executionID)
->beginIF($type == 'myinvolved')
->andWhere("((t4.`account` = '{$this->app->user->account}') OR t1.`assignedTo` = '{$this->app->user->account}' OR t1.`finishedby` = '{$this->app->user->account}')")
diff --git a/module/testtask/control.php b/module/testtask/control.php
index 70f0c231c9..4bec7c3336 100644
--- a/module/testtask/control.php
+++ b/module/testtask/control.php
@@ -161,7 +161,7 @@ class testtask extends control
$this->lang->scrum->menu->qa['subMenu']->testcase['subModule'] = 'testtask';
$this->lang->scrum->menu->qa['subMenu']->testtask['subModule'] = '';
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$this->lang->waterfall->menu->qa['subMenu']->testcase['subModule'] = 'testtask';
$this->lang->waterfall->menu->qa['subMenu']->testtask['subModule'] = '';
diff --git a/module/todo/control.php b/module/todo/control.php
index b126f003c9..967343c791 100644
--- a/module/todo/control.php
+++ b/module/todo/control.php
@@ -206,7 +206,7 @@ class todo extends control
$account = $user->account;
$reviews = array();
- if($this->config->edition == 'max') $reviews = $this->loadModel('review')->getUserReviewPairs($account);
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd') $reviews = $this->loadModel('review')->getUserReviewPairs($account);
$allTodos = $this->todo->getList($type, $account, $status);
if($this->post->todoIDList) $todoIDList = $this->post->todoIDList;
@@ -228,7 +228,7 @@ class todo extends control
$tasks = $this->task->getUserTaskPairs($account, 'wait,doing', '', isset($objectIDList['task']) ? $objectIDList['task'] : '');
$storys = $this->loadModel('story')->getUserStoryPairs($account, 10, 'story', '', isset($objectIDList['story']) ? $objectIDList['story'] : '');
if($this->config->edition != 'open') $this->view->feedbacks = $this->loadModel('feedback')->getUserFeedbackPairs($account, '', isset($objectIDList['feedback']) ? $objectIDList['feedback'] : '');
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$issues = $this->loadModel('issue')->getUserIssuePairs($account);
$risks = $this->loadmodel('risk')->getUserRiskPairs($account);
@@ -256,7 +256,7 @@ class todo extends control
$this->view->bugs = $bugs;
$this->view->tasks = $tasks;
$this->view->storys = $storys;
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$this->view->issues = $issues;
$this->view->risks = $risks;
@@ -599,7 +599,7 @@ class todo extends control
$bugs = $this->loadModel('bug')->getUserBugPairs($account);
$stories = $this->loadModel('story')->getUserStoryPairs($account, 100, 'story');
$tasks = $this->loadModel('task')->getUserTaskPairs($account);
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$issues = $this->loadModel('issue')->getUserIssuePairs($account);
$risks = $this->loadModel('risk')->getUserRiskPairs($account);
@@ -621,7 +621,7 @@ class todo extends control
if($type == 'story') $todo->name = isset($stories[$todo->idvalue]) ? $stories[$todo->idvalue] . "(#$todo->idvalue)" : '';
if($type == 'task') $todo->name = isset($tasks[$todo->idvalue]) ? $tasks[$todo->idvalue] . "(#$todo->idvalue)" : '';
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
if($type == 'issue') $todo->name = isset($issues[$todo->idvalue]) ? $issues[$todo->idvalue] . "(#$todo->idvalue)" : '';
if($type == 'risk') $todo->name = isset($risks[$todo->idvalue]) ? $risks[$todo->idvalue] . "(#$todo->idvalue)" : '';
diff --git a/module/upgrade/model.php b/module/upgrade/model.php
index e9037ada30..159b28b691 100644
--- a/module/upgrade/model.php
+++ b/module/upgrade/model.php
@@ -7827,7 +7827,7 @@ class upgradeModel extends model
/* User requriement */
$requirementStory = $this->dao->select('count(1) as total')->from(TABLE_STORY)->where('type')->eq('requirement')->andWhere('deleted')->eq('0')->fetch('total');
if($requirementStory > 0) $returnData['ur'] = true;
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
/* issue,risk,opportunity,process,QA,meeting */
$issue = $this->dao->select('count(1) as total')->from(TABLE_ISSUE)->alias('t1')
@@ -7901,7 +7901,7 @@ class upgradeModel extends model
->fetch('total');
if($waterfull > 0) $returnData['waterfall'] = true;
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
/* assetlib */
$assetlib = $this->dao->select('count(1) as total')->from(TABLE_ASSETLIB)
diff --git a/module/user/model.php b/module/user/model.php
index af0c921197..2980a721e8 100644
--- a/module/user/model.php
+++ b/module/user/model.php
@@ -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')
+ 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');
diff --git a/module/user/view/execution.html.php b/module/user/view/execution.html.php
index 8d1691af61..e773e63327 100644
--- a/module/user/view/execution.html.php
+++ b/module/user/view/execution.html.php
@@ -35,7 +35,7 @@
| id, '', "data-app='execution'");?> |
- config->edition == 'max'):?>
+ config->edition== 'max' or $this->config->edition == 'ipd'):?>
user->executionTypeList, $execution->type);?>
name, '', "data-app='execution'");?>
diff --git a/module/user/view/featurebar.html.php b/module/user/view/featurebar.html.php
index c9ce81010e..9278bf353f 100755
--- a/module/user/view/featurebar.html.php
+++ b/module/user/view/featurebar.html.php
@@ -46,7 +46,7 @@
common::printLink('user', 'execution', "userID={$user->id}", $label, '', "class='btn btn-link $active executionTab'");
}
- if($this->config->edition == 'max')
+ if($this->config->edition== 'max' or $this->config->edition == 'ipd')
{
$label = "{$lang->user->issue}";
$active = $methodName == 'issue' ? ' btn-active-text' : '';
|