';
$this->lang->TRActions .= html::a($this->createLink('design', 'submit', "productID=$productID", '', true), "
{$this->lang->design->submit}", '', "class='btn btn-secondary iframe'");
diff --git a/module/doc/model.php b/module/doc/model.php
index 11241fe2a9..443cec81c7 100644
--- a/module/doc/model.php
+++ b/module/doc/model.php
@@ -1912,7 +1912,7 @@ class docModel extends model
}
elseif($type == 'project')
{
- if($this->config->edition== 'max' or $this->config->edition == 'ipd')
+ if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
$issueIdList = $this->dao->select('id')->from(TABLE_ISSUE)->where('project')->eq($objectID)->andWhere('deleted')->eq('0')->andWhere('project')->in($this->app->user->view->projects)->get();
$meetingIdList = $this->dao->select('id')->from(TABLE_MEETING)->where('project')->eq($objectID)->andWhere('deleted')->eq('0')->andWhere('project')->in($this->app->user->view->projects)->get();
@@ -3238,7 +3238,7 @@ class docModel extends model
if(!common::hasPriv('doc', 'create') or !isset($lib->id)) return null;
$objectID = zget($lib, $lib->type, 0);
- $templateParam = $this->config->edition == 'max' ? '&from=template' : '';
+ $templateParam = ($this->config->edition == 'max' or $this->config->edition == 'ipd') ? '&from=template' : '';
$class = $from == 'list' ? 'btn-info' : 'btn-primary';
$html = "
-config->edition== 'max' or $this->config->edition == 'ipd'):?>
+edition == 'max' or $config->edition == 'ipd'):?>
diff --git a/module/execution/model.php b/module/execution/model.php
index 6484aaac75..93352e69de 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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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/my/control.php b/module/my/control.php
index 61ec981a10..8315c9c1f8 100755
--- a/module/my/control.php
+++ b/module/my/control.php
@@ -155,12 +155,12 @@ class my extends control
$qaCount = 0;
$meetingCount = 0;
$ticketCount = 0;
- $isMax = $this->config->edition == 'max' ? 1 : 0;
+ $isMax = ($this->config->edition == 'max' or $this->config->edition == 'ipd') ? 1 : 0;
$feedbackCount = 0;
$isBiz = $this->config->edition == 'biz' ? 1 : 0;
- if($isBiz or $isMax)
+ if($this->config->edition != 'open')
{
$feedbacks = $this->loadModel('feedback')->getList('assigntome', 'id_desc', $pager);
$feedbackCount = $pager->recTotal;
@@ -980,7 +980,7 @@ EOF;
}
$this->view->flows = array();
- if($this->config->edition== 'max' or $this->config->edition == 'ipd')
+ 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/my/lang/de.php b/module/my/lang/de.php
index 137f18ffba..b0cd2fe9fb 100644
--- a/module/my/lang/de.php
+++ b/module/my/lang/de.php
@@ -146,7 +146,7 @@ $lang->my->featureBar['audit']['all'] = 'All';
$lang->my->featureBar['audit']['demand'] = 'Demand';
$lang->my->featureBar['audit']['story'] = 'Story';
$lang->my->featureBar['audit']['testcase'] = 'Test case';
-if($config->edition == 'max' and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
+if(($config->edition == 'max' or $config->edition == 'ipd') and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
if($config->edition != 'open') $lang->my->featureBar['audit']['feedback'] = 'Feedback';
if($config->edition != 'open' and helper::hasFeature('OA')) $lang->my->featureBar['audit']['oa'] = 'OA';
diff --git a/module/my/lang/en.php b/module/my/lang/en.php
index 137f18ffba..b0cd2fe9fb 100644
--- a/module/my/lang/en.php
+++ b/module/my/lang/en.php
@@ -146,7 +146,7 @@ $lang->my->featureBar['audit']['all'] = 'All';
$lang->my->featureBar['audit']['demand'] = 'Demand';
$lang->my->featureBar['audit']['story'] = 'Story';
$lang->my->featureBar['audit']['testcase'] = 'Test case';
-if($config->edition == 'max' and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
+if(($config->edition == 'max' or $config->edition == 'ipd') and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
if($config->edition != 'open') $lang->my->featureBar['audit']['feedback'] = 'Feedback';
if($config->edition != 'open' and helper::hasFeature('OA')) $lang->my->featureBar['audit']['oa'] = 'OA';
diff --git a/module/my/lang/fr.php b/module/my/lang/fr.php
index 913dfdc23f..efd5e1a90e 100644
--- a/module/my/lang/fr.php
+++ b/module/my/lang/fr.php
@@ -146,7 +146,7 @@ $lang->my->featureBar['audit']['all'] = 'All';
$lang->my->featureBar['audit']['demand'] = 'Demand';
$lang->my->featureBar['audit']['story'] = 'Story';
$lang->my->featureBar['audit']['testcase'] = 'Test case';
-if($config->edition == 'max' and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
+if(($config->edition == 'max' or $config->edition == 'ipd') and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
if($config->edition != 'open') $lang->my->featureBar['audit']['feedback'] = 'Feedback';
if($config->edition != 'open' and helper::hasFeature('OA')) $lang->my->featureBar['audit']['oa'] = 'OA';
diff --git a/module/my/lang/zh-cn.php b/module/my/lang/zh-cn.php
index 5b2032b413..3aa1f1b86a 100644
--- a/module/my/lang/zh-cn.php
+++ b/module/my/lang/zh-cn.php
@@ -146,7 +146,7 @@ $lang->my->featureBar['audit']['all'] = '全部';
$lang->my->featureBar['audit']['demand'] = '需求池需求';
$lang->my->featureBar['audit']['story'] = '需求';
$lang->my->featureBar['audit']['testcase'] = '用例';
-if($config->edition == 'max' and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
+if(($config->edition == 'max' or $config->edition == 'ipd') and (helper::hasFeature('waterfall') or helper::hasFeature('waterfallplus'))) $lang->my->featureBar['audit']['project'] = $lang->projectCommon;
if($config->edition != 'open') $lang->my->featureBar['audit']['feedback'] = '反馈';
if($config->edition != 'open' and helper::hasFeature('OA')) $lang->my->featureBar['audit']['oa'] = '办公';
diff --git a/module/my/view/dynamic.html.php b/module/my/view/dynamic.html.php
index 83b94cf810..70e884bbd0 100644
--- a/module/my/view/dynamic.html.php
+++ b/module/my/view/dynamic.html.php
@@ -67,7 +67,7 @@
objectType == 'meeting') $tab = $action->project ? "data-app='project'" : "data-app='my'";?>
edition == 'max' and strpos($config->action->assetType, ",{$action->objectType},") !== false) and empty($action->objectName))
+ if((($config->edition == 'max' or $config->edition == 'ipd') and strpos($config->action->assetType, ",{$action->objectType},") !== false) and empty($action->objectName))
{
echo '#' . $action->objectID;
}
diff --git a/module/pivot/view/preview.html.php b/module/pivot/view/preview.html.php
index f5ffe365db..3da21d5f67 100644
--- a/module/pivot/view/preview.html.php
+++ b/module/pivot/view/preview.html.php
@@ -15,7 +15,7 @@ $('#subNavbar li').not('[data-id=]').removeClass('active')
$label", '', "class='btn btn-link {$active}'");?>
- config->edition == 'biz' or $this->config->edition == 'max'):?>
+ config->edition != 'open'):?>
-config->edition == 'biz' or $this->config->edition == 'max'):?>
+config->edition != 'open'):?>
app->getModuleExtPath('', 'pivot', 'view');?>
diff --git a/module/product/view/track.html.php b/module/product/view/track.html.php
index d651241c88..730fbabda0 100644
--- a/module/product/view/track.html.php
+++ b/module/product/view/track.html.php
@@ -44,11 +44,11 @@
story->story;?> |
story->tasks;?> |
- edition == 'max'):?>
+ edition == 'max' or $config->edition == 'ipd'):?>
story->design;?> |
story->case;?> |
- edition == 'max' and helper::hasFeature('devops')):?>
+ edition == 'max' or $config->edition == 'ipd') and helper::hasFeature('devops')):?>
story->repoCommit;?> |
story->bug;?> |
@@ -82,7 +82,7 @@
createLink('task', 'view', "taskID=$taskID"), $task->name, '', "title='$task->name'") . '
';?>
- edition == 'max'):?>
+ edition == 'max' or $config->edition == 'ipd'):?>
designs as $designID => $design):?>
createLink('design', 'view', "designID=$designID"), $design->name, '', "title='$design->name'") . ' ';?>
@@ -94,7 +94,7 @@
createLink('testcase', 'view', "caseID=$caseID"), $case->title, '', "title='$case->title'") . ' ';?>
|
- edition == 'max' and helper::hasFeature('devops')):?>
+ edition == 'max' or $config->edition == 'ipd') and helper::hasFeature('devops')):?>
revisions as $revision => $repoComment):?>
config->edition== 'max' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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/programplan/view/create.html.php b/module/programplan/view/create.html.php
index 22981125a1..f284ca4299 100644
--- a/module/programplan/view/create.html.php
+++ b/module/programplan/view/create.html.php
@@ -100,7 +100,7 @@
| '>programplan->realBegan;?> |
'>programplan->realEnd;?> |
'>programplan->desc;?> |
- config->edition == 'max' and $executionType == 'stage'):?>
+ config->edition == 'max' or $this->config->edition == 'ipd') and $executionType == 'stage'):?>
programplan->output;?> |
actions;?> |
@@ -129,7 +129,7 @@
|
> |
> |
- config->edition == 'max' and $executionType == 'stage'):?>
+ config->edition == 'max' or $this->config->edition == 'ipd') and $executionType == 'stage'):?>
|
@@ -166,7 +166,7 @@
| > |
> |
'>desc, "rows='1' class='form-control autosize'");?> |
- config->edition == 'max' and $executionType == 'stage'):?>
+ config->edition == 'max' or $this->config->edition == 'ipd') and $executionType == 'stage'):?>
output) ? 0 : explode(',', $plan->output);?>
|
@@ -202,7 +202,7 @@
> |
> |
'> |
- config->edition == 'max' and $executionType == 'stage'):?>
+ config->edition == 'max' or $this->config->edition == 'ipd') and $executionType == 'stage'):?>
|
@@ -250,7 +250,7 @@
| > |
> |
'> |
- config->edition == 'max' and $executionType == 'stage'):?>
+ config->edition == 'max' or $this->config->edition == 'ipd') and $executionType == 'stage'):?>
|
diff --git a/module/project/control.php b/module/project/control.php
index 0fc80faaaf..739b972389 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' or $this->config->edition == 'ipd')
+ 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 2c52cc791a..041f02b43e 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' or $this->config->edition == 'ipd') $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/stakeholder/view/browse.html.php b/module/stakeholder/view/browse.html.php
index a2d730d3aa..04b5d2534e 100644
--- a/module/stakeholder/view/browse.html.php
+++ b/module/stakeholder/view/browse.html.php
@@ -78,7 +78,7 @@
id", $stakeholder, 'list', 'chat-line', '', 'iframe', 'yes');
common::printIcon('stakeholder', 'expect', "id=$stakeholder->id", $stakeholder, 'list', 'flag', '', 'iframe', 'yes');
- if($this->config->edition == 'max' and $stakeholder->projectModel == 'waterfall') common::printIcon('stakeholder', 'userIssue', "account=$stakeholder->id", $stakeholder, 'list', 'list-alt', '', 'iframe', 'yes');
+ if(($this->config->edition == 'max' or $this->config->edition == 'ipd') and $stakeholder->projectModel == 'waterfall') common::printIcon('stakeholder', 'userIssue', "account=$stakeholder->id", $stakeholder, 'list', 'list-alt', '', 'iframe', 'yes');
common::printIcon('stakeholder', 'edit', "id=$stakeholder->id", $stakeholder, 'list', '', '', '', '');
$deleteClass = common::hasPriv('stakeholder', 'delete') ? 'btn' : 'btn disabled';
echo html::a($this->createLink('stakeholder', 'delete', "id=$stakeholder->id"), '', 'hiddenwin', "title='{$lang->stakeholder->delete}' class='{$deleteClass}'");
diff --git a/module/story/model.php b/module/story/model.php
index e89ad1fc17..1c57920187 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -406,7 +406,7 @@ class storyModel extends model
if($bugID > 0)
{
- if(($this->config->edition == 'biz' || $this->config->edition == 'max')) $oldBug = $this->dao->select('feedback, status')->from(TABLE_BUG)->where('id')->eq($bugID)->fetch();
+ if($this->config->edition != 'open') $oldBug = $this->dao->select('feedback, status')->from(TABLE_BUG)->where('id')->eq($bugID)->fetch();
$bug = new stdclass();
$bug->toStory = $storyID;
@@ -423,7 +423,7 @@ class storyModel extends model
$this->loadModel('action')->create('bug', $bugID, 'ToStory', '', $storyID);
$this->action->create('bug', $bugID, 'Closed');
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && !dao::isError() && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, 'closed', $oldBug->status);
+ if($this->config->edition != 'open' && !dao::isError() && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, 'closed', $oldBug->status);
/* add files to story from bug. */
$files = $this->dao->select('*')->from(TABLE_FILE)
@@ -1177,7 +1177,7 @@ class storyModel extends model
unset($oldStory->parent);
unset($story->parent);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
+ if($this->config->edition != 'open' && $oldStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
$linkStoryField = $oldStory->type == 'story' ? 'linkStories' : 'linkRequirements';
$linkStories = explode(',', $story->{$linkStoryField});
@@ -1325,7 +1325,7 @@ class storyModel extends model
$this->action->logHistory($actionID, $changes);
}
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldParentStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldParentStory->feedback, $newParentStory->status, $oldParentStory->status);
+ if($this->config->edition != 'open' && $oldParentStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldParentStory->feedback, $newParentStory->status, $oldParentStory->status);
}
}
else
@@ -1561,7 +1561,7 @@ class storyModel extends model
if($story->closedReason == 'done') $this->loadModel('score')->create('story', 'close');
$allChanges[$storyID] = common::createChanges($oldStory, $story);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldStory->feedback && !isset($feedbacks[$oldStory->feedback]))
+ if($this->config->edition != 'open' && $oldStory->feedback && !isset($feedbacks[$oldStory->feedback]))
{
$feedbacks[$oldStory->feedback] = $oldStory->feedback;
$this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
@@ -2064,7 +2064,7 @@ class storyModel extends model
$this->setStage($storyID);
$this->loadModel('score')->create('story', 'close', $storyID);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
+ if($this->config->edition != 'open' && $oldStory->feedback) $this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
}
$changes = common::createChanges($oldStory, $story);
@@ -2142,7 +2142,7 @@ class storyModel extends model
$this->setStage($storyID);
$allChanges[$storyID] = common::createChanges($oldStory, $story);
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $oldStory->feedback && !isset($feedbacks[$oldStory->feedback]))
+ if($this->config->edition != 'open' && $oldStory->feedback && !isset($feedbacks[$oldStory->feedback]))
{
$feedbacks[$oldStory->feedback] = $oldStory->feedback;
$this->loadModel('feedback')->updateStatus('story', $oldStory->feedback, $story->status, $oldStory->status);
@@ -3854,7 +3854,7 @@ class storyModel extends model
->beginIF($type == 'reviewedBy')->andWhere("CONCAT(',', t1.reviewedBy, ',')")->like("%,$account,%")->fi()
->beginIF($type == 'closedBy')->andWhere('t1.closedBy')->eq($account)->fi()
->fi()
- ->beginIF($includeLibStories == false and $this->config->edition == 'max')->andWhere('t1.lib')->eq('0')->fi()
+ ->beginIF($includeLibStories == false and ($this->config->edition == 'max' or $this->config->edition == 'ipd'))->andWhere('t1.lib')->eq('0')->fi()
->beginIF($shadow !== 'all')->andWhere('t2.shadow')->eq((int)$shadow)->fi()
->orderBy($orderBy)
->page($pager)
@@ -4707,7 +4707,7 @@ class storyModel extends model
$menu .= $this->buildMenu('story', 'activate', $params . "&storyType=$story->type", $story, $type, '', '', 'iframe showinonlybody', true);
$disabledFeatures = ",{$this->config->disabledFeatures},";
- if($this->config->edition == 'max' and $this->app->tab == 'project' and common::hasPriv('story', 'importToLib') and strpos($disabledFeatures, ',assetlibStorylib,') === false and strpos($disabledFeatures, ',assetlib,') === false)
+ if(($this->config->edition == 'max' or $this->config->edition == 'ipd') and $this->app->tab == 'project' and common::hasPriv('story', 'importToLib') and strpos($disabledFeatures, ',assetlibStorylib,') === false and strpos($disabledFeatures, ',assetlib,') === false)
{
$menu .= html::a('#importToLib', " " . $this->lang->story->importToLib, '', 'class="btn" data-toggle="modal"');
}
@@ -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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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/testtask/control.php b/module/testtask/control.php
index 4bec7c3336..209beaddca 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' or $this->config->edition == 'ipd')
+ 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 967343c791..8d093ec2d5 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' or $this->config->edition == 'ipd') $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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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/todo/model.php b/module/todo/model.php
index 0387ff67c0..d401cc428b 100644
--- a/module/todo/model.php
+++ b/module/todo/model.php
@@ -305,7 +305,7 @@ class todoModel extends model
{
$this->file->updateObjectID($this->post->uid, $todoID, 'todo');
if(!empty($oldTodo->cycle)) $this->createByCycle(array($todoID => $todo));
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $todo->type == 'feedback' && $todo->idvalue) $this->loadModel('feedback')->updateStatus('todo', $todo->idvalue, $todo->status);
+ if($this->config->edition != 'open' && $todo->type == 'feedback' && $todo->idvalue) $this->loadModel('feedback')->updateStatus('todo', $todo->idvalue, $todo->status);
return common::createChanges($oldTodo, $todo);
}
}
@@ -373,7 +373,7 @@ class todoModel extends model
if(!dao::isError())
{
- if(($this->config->edition == 'biz' || $this->config->edition == 'max') && $todo->type == 'feedback' && $todo->idvalue && !isset($feedbacks[$todo->idvalue]))
+ if($this->config->edition != 'open' && $todo->type == 'feedback' && $todo->idvalue && !isset($feedbacks[$todo->idvalue]))
{
$feedbacks[$todo->idvalue] = $todo->idvalue;
$this->loadModel('feedback')->updateStatus('todo', $todo->idvalue, $todo->status);
@@ -425,7 +425,7 @@ class todoModel extends model
{
$this->loadModel('action')->create('todo', $todoID, 'finished', '', 'done');
- if(($this->config->edition == 'biz' || $this->config->edition == 'max'))
+ if($this->config->edition != 'open')
{
$feedbackID = $this->dao->select('idvalue')->from(TABLE_TODO)->where('id')->eq($todoID)->andWhere('type')->eq('feedback')->fetch('idvalue');
if($feedbackID) $this->loadModel('feedback')->updateStatus('todo', $feedbackID, 'done');
@@ -452,10 +452,10 @@ class todoModel extends model
if($todo->type == 'story') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_STORY)->fetch('title');
if($todo->type == 'task') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_TASK)->fetch('name');
if($todo->type == 'bug') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_BUG)->fetch('title');
- if($todo->type == 'issue' and $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_ISSUE)->fetch('title');
- if($todo->type == 'risk' and $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_RISK)->fetch('name');
- if($todo->type == 'opportunity' and $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_OPPORTUNITY)->fetch('name');
- if($todo->type == 'review' and $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_REVIEW)->fetch('title');
+ if($todo->type == 'issue' and ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_ISSUE)->fetch('title');
+ if($todo->type == 'risk' and ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_RISK)->fetch('name');
+ if($todo->type == 'opportunity' and ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_OPPORTUNITY)->fetch('name');
+ if($todo->type == 'review' and ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_REVIEW)->fetch('title');
if($todo->type == 'testtask') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_TESTTASK)->fetch('name');
if($todo->type == 'feedback') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_FEEDBACK)->fetch('title');
$todo->date = str_replace('-', '', $todo->date);
@@ -571,10 +571,10 @@ class todoModel extends model
if($todo->type == 'task') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_TASK)->fetch('name');
if($todo->type == 'bug') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_BUG)->fetch('title');
if($todo->type == 'testtask') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_TESTTASK)->fetch('name');
- if($todo->type == 'issue' && $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_ISSUE)->fetch('title');
- if($todo->type == 'risk' && $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_RISK)->fetch('name');
- if($todo->type == 'opportunity' && $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_OPPORTUNITY)->fetch('name');
- if($todo->type == 'review' && $this->config->edition == 'max') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_REVIEW)->fetch('title');
+ if($todo->type == 'issue' && ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_ISSUE)->fetch('title');
+ if($todo->type == 'risk' && ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_RISK)->fetch('name');
+ if($todo->type == 'opportunity' && ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_OPPORTUNITY)->fetch('name');
+ if($todo->type == 'review' && ($this->config->edition == 'max' or $this->config->edition == 'ipd')) $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_REVIEW)->fetch('title');
if($todo->type == 'feedback' and $this->config->edition != 'open') $todo->name = $this->dao->findById($todo->idvalue)->from(TABLE_FEEDBACK)->fetch('title');
$todo->begin = date::formatTime($todo->begin);
$todo->end = date::formatTime($todo->end);
@@ -794,7 +794,7 @@ class todoModel extends model
{
$this->loadModel('action')->create('todo', $todoID, 'closed', '', 'closed');
- if(($this->config->edition == 'biz' || $this->config->edition == 'max'))
+ if($this->config->edition != 'open')
{
$feedbackID = $this->dao->select('idvalue')->from(TABLE_TODO)->where('id')->eq($todoID)->andWhere('type')->eq('feedback')->fetch('idvalue');
if($feedbackID) $this->loadModel('feedback')->updateStatus('todo', $feedbackID, 'closed');
diff --git a/module/upgrade/model.php b/module/upgrade/model.php
index 159b28b691..7c624738fe 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' or $this->config->edition == 'ipd')
+ 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' or $this->config->edition == 'ipd')
+ 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 2980a721e8..7734b6fa58 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' or $this->config->edition == 'ipd')
+ 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 e773e63327..6a39a4f5f8 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' or $this->config->edition == 'ipd'):?>
+ 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 9278bf353f..a849fd3987 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' or $this->config->edition == 'ipd')
+ if($this->config->edition == 'max' or $this->config->edition == 'ipd')
{
$label = "{$lang->user->issue}";
$active = $methodName == 'issue' ? ' btn-active-text' : '';
|