Commit 576ca63e authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't bother showing the authtypes element if we are creating a new...

Don't bother showing the authtypes element if we are creating a new institution - it will only confuse people. Make the length of the 'maximum number of users' input shorter.
parent 8c078318
......@@ -203,7 +203,7 @@ if ($institution || $add) {
'instancestring' => $instancestring,
'institution' => $institution,
'help' => true,
'ignore' => count($authtypes) == 0
'ignore' => count($authtypes) == 0 || $institution == ''
),
'registerallowed' => array(
'type' => 'checkbox',
......@@ -237,7 +237,11 @@ if ($institution || $add) {
'title' => get_string('maxuseraccounts','admin'),
'description' => get_string('maxuseraccountsdescription','admin'),
'defaultvalue' => empty($data->maxuseraccounts) ? '' : $data->maxuseraccounts,
'rules' => array('regex' => '/^\d*$/'),
'rules' => array(
'regex' => '/^\d*$/',
'maxlength' => 8,
),
'size' => 5,
);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment