Commit 2b3d2cb3 authored by Donal McMullan's avatar Donal McMullan
Browse files

Fix for #707: You can attempt to assign [empty] as an authentication plugin

parent ec8017e8
......@@ -153,17 +153,22 @@ if ($institution || $add) {
'maxlength' => 255
),
'help' => true,
),
'authplugin' => array(
'type' => 'authlist',
'title' => get_string('authplugin', 'admin'),
'options' => $authinstances,
'authtypes' => $authtypes,
'instancearray' => $instancearray,
'instancestring' => implode(',',$instancearray),
'institution' => $institution,
'help' => true,
),
));
if (count($authtypes) > 0) {
$elements = array_merge($elements, array(
'authplugin' => array(
'type' => 'authlist',
'title' => get_string('authplugin', 'admin'),
'options' => $authinstances,
'authtypes' => $authtypes,
'instancearray' => $instancearray,
'instancestring' => implode(',',$instancearray),
'institution' => $institution,
'help' => true,
)
));
}
$elements = array_merge($elements, array(
'registerallowed' => array(
'type' => 'checkbox',
'title' => get_string('registrationallowed', 'admin'),
......@@ -197,7 +202,7 @@ if ($institution || $add) {
. get_help_icon('core', 'admin', 'institution', 'lockedfields')
. '</th></tr>'
)
);
));
foreach (ArtefactTypeProfile::get_all_fields() as $field => $type) {
$elements[$field] = array(
......
Supports Markdown
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