diff --git a/module/datatable/lang/de.php b/module/datatable/lang/de.php
index 55aafa1a75..3034fb390d 100644
--- a/module/datatable/lang/de.php
+++ b/module/datatable/lang/de.php
@@ -23,7 +23,7 @@ $lang->datatable->displaySetting = 'Set list';
$lang->datatable->showModule = 'Anzeigen/Verstecken des Modul Names';
$lang->datatable->showBranch = 'Show branches in the list';
$lang->datatable->showAllModule = 'Show product modules';
-$lang->datatable->showModuleList[] = 'N/A';
+$lang->datatable->showModuleList['0'] = 'N/A';
$lang->datatable->showModuleList['base'] = 'Basisknoten';
$lang->datatable->showModuleList['end'] = 'Endknoten';
$lang->datatable->showAllModuleList[0] = 'Hide';
diff --git a/module/datatable/lang/en.php b/module/datatable/lang/en.php
index e5ab3098df..9c4b86de8d 100644
--- a/module/datatable/lang/en.php
+++ b/module/datatable/lang/en.php
@@ -23,7 +23,7 @@ $lang->datatable->displaySetting = 'Set List';
$lang->datatable->showModule = 'Show modules in the list';
$lang->datatable->showBranch = 'Show branches in the list';
$lang->datatable->showAllModule = 'Show product modules';
-$lang->datatable->showModuleList[] = 'N/A';
+$lang->datatable->showModuleList['0'] = 'N/A';
$lang->datatable->showModuleList['base'] = 'Base Node';
$lang->datatable->showModuleList['end'] = 'End Node';
$lang->datatable->showAllModuleList[0] = 'Hide';
diff --git a/module/datatable/lang/fr.php b/module/datatable/lang/fr.php
index 6ced0da225..33a98bd90a 100644
--- a/module/datatable/lang/fr.php
+++ b/module/datatable/lang/fr.php
@@ -23,7 +23,7 @@ $lang->datatable->displaySetting = 'Set list';
$lang->datatable->showModule = 'Montrer les noms des modules dans la page de listes';
$lang->datatable->showBranch = 'Show branches in the list';
$lang->datatable->showAllModule = 'Afficher les modules de produits';
-$lang->datatable->showModuleList[] = 'N/A';
+$lang->datatable->showModuleList['0'] = 'N/A';
$lang->datatable->showModuleList['base'] = 'Base Node';
$lang->datatable->showModuleList['end'] = 'End Node';
$lang->datatable->showAllModuleList[0] = 'Cacher';
diff --git a/module/datatable/lang/zh-cn.php b/module/datatable/lang/zh-cn.php
index 8da7db89b1..b4d63aeb80 100644
--- a/module/datatable/lang/zh-cn.php
+++ b/module/datatable/lang/zh-cn.php
@@ -23,7 +23,7 @@ $lang->datatable->displaySetting = '显示设置';
$lang->datatable->showModule = '列表页是否显示模块名';
$lang->datatable->showBranch = '列表页是否显示%s名';
$lang->datatable->showAllModule = '是否显示完整产品模块';
-$lang->datatable->showModuleList[] = '不显示';
+$lang->datatable->showModuleList['0'] = '不显示';
$lang->datatable->showModuleList['base'] = '只显示一级模块';
$lang->datatable->showModuleList['end'] = '只显示最后一级模块';
$lang->datatable->showAllModuleList[0] = '不显示';
diff --git a/module/doc/control.php b/module/doc/control.php
index 3335e01e46..76ba88cd19 100755
--- a/module/doc/control.php
+++ b/module/doc/control.php
@@ -1125,7 +1125,7 @@ class doc extends control
/* Set Custom. */
foreach(explode(',', $this->config->doc->customObjectLibs) as $libType) $customObjectLibs[$libType] = $this->lang->doc->customObjectLibs[$libType];
- $actionURL = $this->createLink('doc', 'browse', "lib=0&browseType=bySearch&queryID=myQueryID");
+ $actionURL = $this->createLink('doc', 'tableContents', "type=$type&objectID=$objectID&libID=$libID&browseType=bySearch¶m=myQueryID");
$this->doc->buildSearchForm(0, array(), 0, $actionURL, $type);
$moduleTree = $type == 'book' ? $this->doc->getBookStructure($libID) : $this->doc->getTreeMenu($type, $objectID, $libID, 0, $docID);
diff --git a/module/doc/model.php b/module/doc/model.php
index f25b659ee5..eaa031b44b 100644
--- a/module/doc/model.php
+++ b/module/doc/model.php
@@ -930,6 +930,13 @@ class docModel extends model
{
$this->loadModel('product');
+ /* Fixed search modal for doc view. */
+ if($this->app->getMethodName() == 'objectlibs')
+ {
+ $queryName = $type . 'Doc';
+ $type = 'objectLibs';
+ }
+
if($this->app->rawMethod == 'contribute')
{
$this->config->doc->search['module'] = 'contributeDoc';
@@ -953,6 +960,7 @@ class docModel extends model
}
else
{
+ $this->config->doc->search['module'] = $queryName;
$products = $this->product->getPairs('nocode', $this->session->project);
$this->config->doc->search['params']['execution']['values'] = array('' => '') + $this->loadModel('execution')->getPairs($this->session->project, 'all', 'noclosed') + array('all' => $this->lang->doc->allExecutions);
$this->config->doc->search['params']['lib']['values'] = array('' => '', $libID => ($libID ? $libs[$libID] : 0), 'all' => $this->lang->doclib->all);
diff --git a/module/file/control.php b/module/file/control.php
index 36e29ae62e..c8230031b6 100755
--- a/module/file/control.php
+++ b/module/file/control.php
@@ -314,6 +314,7 @@ class file extends control
$this->view->files = $files;
$this->view->fieldset = $fieldset;
$this->view->object = $object;
+ $this->view->method = $method;
if($method == 'view') return $this->display('file', 'viewfiles');
$this->display();
diff --git a/module/file/model.php b/module/file/model.php
index 5a6d65185f..72d4a1d828 100755
--- a/module/file/model.php
+++ b/module/file/model.php
@@ -167,7 +167,7 @@ class fileModel extends model
$files = array();
if(!isset($_FILES[$htmlTagName])) return $files;
- if($_FILES[$htmlTagName]['error'] != 0) return $_FILES[$htmlTagName];
+ if(!is_array($_FILES[$htmlTagName]['error']) and $_FILES[$htmlTagName]['error'] != 0) return $_FILES[$htmlTagName];
$this->app->loadClass('purifier', true);
$config = HTMLPurifier_Config::createDefault();
diff --git a/module/file/view/printfiles.html.php b/module/file/view/printfiles.html.php
index ee78a6ecc0..2c621c7413 100644
--- a/module/file/view/printfiles.html.php
+++ b/module/file/view/printfiles.html.php
@@ -92,7 +92,7 @@
if(common::hasPriv($objectType, 'edit', $object))
{
echo " ";
- common::printLink('file', 'edit', "fileID=$file->id", $lang->file->edit, '', "data-width='400' class='fileAction btn btn-link edit iframe text-primary' title='{$lang->file->edit}'");
+ if($method != 'storyChange') common::printLink('file', 'edit', "fileID=$file->id", $lang->file->edit, '', "data-width='400' class='fileAction btn btn-link edit iframe text-primary' title='{$lang->file->edit}'");
if(common::hasPriv('file', 'delete')) echo html::a('###', $lang->delete, '', "class='fileAction btn btn-link text-primary' onclick='deleteFile($file->id)' title='$lang->delete'");
echo '';
}
diff --git a/module/my/view/requirement.html.php b/module/my/view/requirement.html.php
index bd365b7a1c..8472470c53 100644
--- a/module/my/view/requirement.html.php
+++ b/module/my/view/requirement.html.php
@@ -90,10 +90,10 @@
| pri;?>' title='story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> |
- title, null, "style='color: $story->color' data-group='product'") : "$story->title";?>
+ title, null, "style='color: $story->color' data-group='product' title='$story->title'") : "$story->title";?>
children)) echo '';?>
|
- productTitle;?> |
+ productTitle;?> |
openedBy);?> |
estimate . $config->hourUnit;?> |
processStatus('story', $story);?> |
@@ -133,9 +133,9 @@
pri;?>' title='story->priList, $child->pri, $child->pri);?>'>story->priList, $child->pri, $child->pri);?> |
- lang->story->children .'">SR ' . (common::hasPriv('story', 'view') ? html::a($storyLink, $child->title, null, "style='color: $child->color' data-group='product'") : $child->title);?>
+ lang->story->children .'">SR ' . (common::hasPriv('story', 'view') ? html::a($storyLink, $child->title, null, "style='color: $child->color' data-group='product' title='$child->title'") : $child->title);?>
|
- productTitle;?> |
+ productTitle;?> |
openedBy);?> |
estimate . $config->hourUnit;?> |
URChanged ? "{$this->lang->story->URChanged}" : "" . $this->processStatus('story', $child) . ''?> |
diff --git a/module/port/model.php b/module/port/model.php
index 2e24b68648..f93951a470 100644
--- a/module/port/model.php
+++ b/module/port/model.php
@@ -780,9 +780,12 @@ class portModel extends model
if(strpos($queryCondition, "`{$this->config->db->prefix}$model` AS t2") !== false) $selectKey = 't2.id';
$stmt = $this->dbh->query($queryCondition . ($this->post->exportType == 'selected' ? " AND $selectKey IN({$this->cookie->checkedItem})" : ''));
- while($row = $stmt->fetch()) $modelDatas[$row->id] = $row;
+ while($row = $stmt->fetch())
+ {
+ if($selectKey !== 't1.id' and isset($row->$model) and isset($row->id)) $row->id = $row->$model;
+ $modelDatas[$row->id] = $row;
+ }
}
-
return $modelDatas;
}
diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php
index bf5f5b8528..b694c39596 100644
--- a/module/story/lang/zh-cn.php
+++ b/module/story/lang/zh-cn.php
@@ -154,8 +154,8 @@ $lang->story->children = "子需求";
$lang->story->childrenAB = "子";
$lang->story->linkStories = "相关{$lang->SRCommon}";
$lang->story->linkRequirements = "相关{$lang->URCommon}";
-$lang->story->childStories = "细分需求";
-$lang->story->duplicateStory = "重复需求";
+$lang->story->childStories = "细分{$lang->SRCommon}";
+$lang->story->duplicateStory = "重复{$lang->SRCommon}";
$lang->story->reviewResult = '评审意见';
$lang->story->reviewResultAB = '评审结果';
$lang->story->preVersion = '之前版本';
diff --git a/module/story/model.php b/module/story/model.php
index 71c9352f68..3b0ba376e7 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -784,7 +784,7 @@ class storyModel extends model
return false;
}
- if($this->checkForceReview() and empty($_POST['reviewer']))
+ if(strpos('draft,changing', $oldStory->status) !== false and $this->checkForceReview() and empty($_POST['reviewer']))
{
dao::$errors[] = $this->lang->story->errorEmptyReviewedBy;
return false;
diff --git a/module/story/view/change.html.php b/module/story/view/change.html.php
index d274aceec6..a5b89ca66f 100644
--- a/module/story/view/change.html.php
+++ b/module/story/view/change.html.php
@@ -68,7 +68,7 @@
| attatch;?> |
- fetch('file', 'printFiles', array('files' => $files, 'fieldset' => 'true', 'object' => $story, 'method' => 'change'));?>
+ fetch('file', 'printFiles', array('files' => $files, 'fieldset' => 'true', 'object' => $story, 'method' => 'storyChange'));?>
fetch('file', 'buildform');?>
|
diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php
index 74043a0151..a06afb7524 100644
--- a/module/story/view/edit.html.php
+++ b/module/story/view/edit.html.php
@@ -240,7 +240,7 @@
| story->legendMailto;?> |
- mailto); foreach($mailto as $account) {if(empty($account)) continue; echo "" . zget($users, trim($account)) . ' '; }?> |
+
+ mailto))
+ {
+ foreach(explode(',', $story->mailto) as $account)
+ {
+ if(empty($account)) continue;
+ echo "" . zget($users, trim($account)) . ' ';
+ }
+ }
+ ?>
+ |