This commit is contained in:
chenfeiCF
2016-12-22 14:54:42 +08:00
parent 4a85b8810d
commit 4c2166b1c1
+3 -1
View File
@@ -87,7 +87,9 @@ class custom extends control
{
$value = $_POST['values'][$index];
$system = $_POST['systems'][$index];
if(!$system and (!$value or !$key)) continue;
//Fix bug #951.
//if(!$system and (!$value or !$key)) continue;
/* 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));