diff --git a/module/custom/model.php b/module/custom/model.php
index fac4fd6843..e303c10a9c 100644
--- a/module/custom/model.php
+++ b/module/custom/model.php
@@ -470,7 +470,7 @@ class customModel extends model
/**
* Get UR and SR pairs.
- *
+ *
* @access public
* @return void
*/
@@ -487,7 +487,7 @@ class customModel extends model
foreach($langData as $id => $content)
{
$value = json_decode($content->value);
- $URSRPairs[$content->key] = $value->URName . '/' . $value->SRName;
+ $URSRPairs[$content->key] = $this->config->URAndSR ? $value->URName . '/' . $value->SRName : $value->SRName;
}
return $URSRPairs;
@@ -495,7 +495,7 @@ class customModel extends model
/**
* Get UR pairs.
- *
+ *
* @access public
* @return void
*/
@@ -504,8 +504,8 @@ class customModel extends model
$URSRList = $this->dao->select('`key`,`value`')->from(TABLE_LANG)->where('module')->eq('custom')->andWhere('section')->eq('URSRList')->andWhere('lang')->eq($this->app->clientLang)->fetchPairs();
$URPairs = array();
- foreach($URSRList as $key => $value)
- {
+ foreach($URSRList as $key => $value)
+ {
$URSR = json_decode($value);
$URPairs[$key] = $URSR->URName;
}
@@ -515,7 +515,7 @@ class customModel extends model
/**
* Get SR pairs.
- *
+ *
* @access public
* @return void
*/
@@ -524,8 +524,8 @@ class customModel extends model
$URSRList = $this->dao->select('`key`,`value`')->from(TABLE_LANG)->where('module')->eq('custom')->andWhere('section')->eq('URSRList')->andWhere('lang')->eq($this->app->clientLang)->fetchPairs();
$SRPairs = array();
- foreach($URSRList as $key => $value)
- {
+ foreach($URSRList as $key => $value)
+ {
$URSR = json_decode($value);
$SRPairs[$key] = $URSR->SRName;
}
@@ -535,7 +535,7 @@ class customModel extends model
/**
* Get UR and SR list.
- *
+ *
* @access public
* @return void
*/
@@ -656,12 +656,13 @@ class customModel extends model
$maxKey = $maxKey ? $maxKey : 1;
/* If has custom UR and SR name. */
- foreach($data->URName as $key => $URName)
+ foreach($data->SRName as $key => $SRName)
{
- $SRName = zget($data->SRName, $key, '');
+ if(isset($data->URName)) $URName = zget($data->URName, $key, '');
+ if(!isset($data->URName)) $URName = $this->lang->URCommon;
if(!$URName || !$SRName) continue;
- $URSRList = new stdclass();
+ $URSRList = new stdclass();
$URSRList->SRName = $SRName;
$URSRList->URName = $URName;
@@ -677,7 +678,7 @@ class customModel extends model
/**
* Edit UR and SR concept.
*
- * @param int $key
+ * @param int $key
* @access public
* @return bool
*/
@@ -688,7 +689,7 @@ class customModel extends model
if(!$data->SRName || !$data->URName) return false;
- $URSRList = new stdclass();
+ $URSRList = new stdclass();
$URSRList->SRName = $data->SRName;
$URSRList->URName = $data->URName;
@@ -699,7 +700,7 @@ class customModel extends model
->andWhere('lang')->eq($lang)
->andWhere('module')->eq('custom')
->exec();
-
+
return true;
}
diff --git a/module/custom/view/editstoryconcept.html.php b/module/custom/view/editstoryconcept.html.php
index cb330cc003..eb835aedc3 100644
--- a/module/custom/view/editstoryconcept.html.php
+++ b/module/custom/view/editstoryconcept.html.php
@@ -20,17 +20,18 @@
diff --git a/module/custom/view/setstoryconcept.html.php b/module/custom/view/setstoryconcept.html.php
index 2b1c0b56a5..cdc76710d3 100644
--- a/module/custom/view/setstoryconcept.html.php
+++ b/module/custom/view/setstoryconcept.html.php
@@ -10,7 +10,9 @@
*/
?>
config->URAndSR)
+{
+ $itemRow = <<
|
|
@@ -20,6 +22,20 @@ $itemRow = <<
EOT;
+}
+else
+{
+ $itemRow = <<
+ |
+
+
+
+ |
+
+EOT;
+
+}
?>
@@ -33,20 +49,23 @@ EOT;
diff --git a/module/my/lang/zh-cn.php b/module/my/lang/zh-cn.php
index 0d31b20d47..d5f5ea6941 100644
--- a/module/my/lang/zh-cn.php
+++ b/module/my/lang/zh-cn.php
@@ -1,4 +1,6 @@
my->common = '我的地盘';
/* 方法列表。*/
@@ -28,7 +30,6 @@ $lang->my->manageContacts = '维护联系人';
$lang->my->deleteContacts = '删除联系人';
$lang->my->shareContacts = '共享联系人列表';
$lang->my->limited = '受限操作(只能编辑与自己相关的内容)';
-$lang->my->storyConcept = '默认需求概念组合';
$lang->my->score = '我的积分';
$lang->my->scoreRule = '积分规则';
$lang->my->noTodo = '暂时没有待办。';
@@ -39,6 +40,7 @@ $lang->my->uploadAvatar = '更换头像';
$lang->my->requirement = "我的{$lang->URCommon}";
$lang->my->testtask = '我的测试单';
$lang->my->testcase = '我的用例';
+$lang->my->storyConcept = $config->URAndSR ? '默认需求概念组合' : '默认需求概念';
$lang->my->myExecutions = "我参与的阶段/冲刺/迭代";
$lang->my->name = '名称';
diff --git a/module/my/view/preference.html.php b/module/my/view/preference.html.php
index f189542b49..b099df069c 100755
--- a/module/my/view/preference.html.php
+++ b/module/my/view/preference.html.php
@@ -38,7 +38,7 @@ html,body {height: 100%;}
| my->storyConcept;?> |
|
-
+
config->systemMode == 'new'):?>
| my->programLink;?> |