Commit cbb3f97b authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fix up url to redirect to on successful form submission. Make sure that at

least one administrator is specified.
parent 0686d6e6
......@@ -47,7 +47,10 @@ $form = array(
'type' => 'userlist',
'title' => get_string('adminusers', 'admin'),
'defaultvalue' => $adminusers,
'filter' => false
'filter' => false,
'rules' => array(
'required' => true
)
),
'submit' => array(
'type' => 'submit',
......@@ -69,7 +72,7 @@ function adminusers_submit($values) {
WHERE id IN (' . join(',', $values['users']) . ')');
db_commit();
$SESSION->add_ok_msg(get_string('adminusersupdated', 'admin'));
redirect(get_config('wwwroot') . 'admin/usermanagement/adminusers.php');
redirect(get_config('wwwroot') . 'admin/users/admins.php');
}
$smarty->assign('adminusersform', pieform($form));
......
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