Commit 9ccb6d7a authored by Dries's avatar Dries
Browse files

- Patch #26641 by Uwe: tabs disappear in user.module settings after saving a role.

parent 32d9af49
......@@ -1663,6 +1663,7 @@ function user_admin_role() {
if ($edit['name']) {
db_query("UPDATE {role} SET name = '%s' WHERE rid = %d", $edit['name'], $id);
drupal_set_message(t('The changes have been saved.'));
drupal_goto('admin/access/roles');
}
else {
form_set_error('name', t('You must specify a valid role name.'));
......
......@@ -1663,6 +1663,7 @@ function user_admin_role() {
if ($edit['name']) {
db_query("UPDATE {role} SET name = '%s' WHERE rid = %d", $edit['name'], $id);
drupal_set_message(t('The changes have been saved.'));
drupal_goto('admin/access/roles');
}
else {
form_set_error('name', t('You must specify a valid role name.'));
......
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