diff --git a/module/custom/control.php b/module/custom/control.php index 3f991dbaa2..d516fd06ff 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -118,6 +118,14 @@ class custom extends control if(strtolower($this->server->request_method) == "post") { + $postArray = fixer::input('post'); + $keys = array(); + foreach($postArray->data->keys as $key) + { + if(in_array($key, $keys)) return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->custom->notice->repeatKey, $key)));; + $keys[] = $key; + } + if($module == 'project' and $field == 'unitList') { $data = fixer::input('post')->join('unitList', ',')->get(); diff --git a/module/custom/lang/de.php b/module/custom/lang/de.php index 3d4b106b1e..ac5e37523a 100644 --- a/module/custom/lang/de.php +++ b/module/custom/lang/de.php @@ -206,6 +206,7 @@ $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it $lang->custom->notice->confirmReviewCase = 'Set the case in Wait to Normal?'; $lang->custom->notice->storyReviewTip = 'After selecting by individual, position, and department, take the union of these three filters. '; $lang->custom->notice->selectAllTip = 'After selecting all people, the reviewers will be emptied and grayed out while hiding their positions and departments.'; +$lang->custom->notice->repeatKey = 'Repeat Key %s'; $lang->custom->notice->indexPage['product'] = "ZenTao 8.2+ has Product Homepage. Do you want to go to Product Homepage?"; $lang->custom->notice->indexPage['project'] = "ZenTao 8.2+ has Project Homepage. Do you want to go to Project Homepage?"; diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index 9dfdd0375a..48daaafaa0 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -206,6 +206,7 @@ $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it $lang->custom->notice->confirmReviewCase = 'Set the case in Wait to Normal?'; $lang->custom->notice->storyReviewTip = 'After selecting by individual, position, and department, take the union of these three filters. '; $lang->custom->notice->selectAllTip = 'After selecting all people, the reviewers will be emptied and grayed out while hiding their positions and departments.'; +$lang->custom->notice->repeatKey = 'Repeat Key %s'; $lang->custom->notice->indexPage['product'] = "ZenTao 8.2+ has Product Home. Do you want to go to Product Home?"; $lang->custom->notice->indexPage['project'] = "ZenTao 8.2+ has Project Home. Do you want to go to Project Home?"; diff --git a/module/custom/lang/fr.php b/module/custom/lang/fr.php index 76a1ad234f..4bbe7d9751 100644 --- a/module/custom/lang/fr.php +++ b/module/custom/lang/fr.php @@ -206,6 +206,7 @@ $lang->custom->notice->confirmDelete = 'Are you sure you want to delete it $lang->custom->notice->confirmReviewCase = 'Set the case in Wait to Normal?'; $lang->custom->notice->storyReviewTip = 'After selecting by individual, position, and department, take the union of these three filters. '; $lang->custom->notice->selectAllTip = 'After selecting all people, the reviewers will be emptied and grayed out while hiding their positions and departments.'; +$lang->custom->notice->repeatKey = 'Repeat Key %s'; $lang->custom->notice->indexPage['product'] = "ZenTao 8.2+ possède une page d'accueil. Voulez-vous consulter la page d'accueil du produit ?"; $lang->custom->notice->indexPage['project'] = "ZenTao 8.2+ possède une page d'accueil. Voulez-vous consulter la page d'accueil du produit ?"; diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index 21bad4d756..bce8b02215 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -206,6 +206,7 @@ $lang->custom->notice->confirmDelete = '您确定要删除吗?'; $lang->custom->notice->confirmReviewCase = '是否将待评审的用例修改为正常状态?'; $lang->custom->notice->storyReviewTip = '按人员、职位、部门勾选后,取所有人员的并集。'; $lang->custom->notice->selectAllTip = '勾选所有人员后,会清空并置灰评审人员,同时隐藏职位、部门。'; +$lang->custom->notice->repeatKey = '%s键重复'; $lang->custom->notice->indexPage['product'] = "从8.2版本起增加了产品主页视图,是否默认进入产品主页?"; $lang->custom->notice->indexPage['project'] = "从8.2版本起增加了项目主页视图,是否默认进入项目主页?";