diff --git a/module/custom/control.php b/module/custom/control.php index b7ff14d51a..a37ea88342 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -121,7 +121,7 @@ class custom extends control if(!empty($key) and $key != 'n/a' and !validater::checkREG($key, '/^[a-zA-Z_0-9]+$/')) die(js::alert($this->lang->custom->notice->keyList)); /* the length of role is 20, check it when save. */ - if($module == 'user' and $field == 'roleList' and strlen($key) > 20) die(js::alert($this->lang->custom->notice->userRole)); + if($module == 'user' and $field == 'roleList' and strlen($key) > 10) die(js::alert($this->lang->custom->notice->userRole)); } $lang = $_POST['lang']; diff --git a/module/custom/lang/en.php b/module/custom/lang/en.php index 7bea454f8b..86598248e3 100644 --- a/module/custom/lang/en.php +++ b/module/custom/lang/en.php @@ -83,7 +83,7 @@ $lang->custom->allLang = 'All Language'; $lang->custom->confirmRestore = 'Do you want to reset to Default?'; $lang->custom->notice = new stdclass(); -$lang->custom->notice->userRole = 'Key must be no more than 20 characters!'; +$lang->custom->notice->userRole = 'Key must be no more than 10 characters!'; $lang->custom->notice->canNotAdd = 'These items are parameters of calculation, so customized creation is not enabled.'; $lang->custom->notice->forceReview = '%s Review is required for certain submitters.'; $lang->custom->notice->forceNotReview = "%s Review is NOT required for certain submitters."; diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index 5d17b21186..92c0252f81 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -83,7 +83,7 @@ $lang->custom->allLang = '适用所有语言'; $lang->custom->confirmRestore = '是否要恢复默认配置?'; $lang->custom->notice = new stdclass(); -$lang->custom->notice->userRole = '键的长度必须小于20个字符!'; +$lang->custom->notice->userRole = '键的长度必须小于10个字符!'; $lang->custom->notice->canNotAdd = '该项参与运算,不提供自定义添加功能'; $lang->custom->notice->forceReview = "指定人提交的%s必须评审。"; $lang->custom->notice->forceNotReview = "指定人提交的%s不需要评审。"; diff --git a/module/custom/lang/zh-tw.php b/module/custom/lang/zh-tw.php index 3cace44c0d..0598964dee 100644 --- a/module/custom/lang/zh-tw.php +++ b/module/custom/lang/zh-tw.php @@ -83,7 +83,7 @@ $lang->custom->allLang = '適用所有語言'; $lang->custom->confirmRestore = '是否要恢復預設配置?'; $lang->custom->notice = new stdclass(); -$lang->custom->notice->userRole = '鍵的長度必須小於20個字元!'; +$lang->custom->notice->userRole = '鍵的長度必須小於10個字元!'; $lang->custom->notice->canNotAdd = '該項參與運算,不提供自定義添加功能'; $lang->custom->notice->forceReview = "指定人提交的%s必須評審。"; $lang->custom->notice->forceNotReview = "指定人提交的%s不需要評審。";