Commit 61e6e87a authored by Steven Wittens's avatar Steven Wittens

#102174: Default filter format's roles were messed up.

parent f35c27cb
......@@ -522,7 +522,7 @@ function filter_admin_format_form_submit($form_id, $form_values) {
}
}
}
$roles = ','. implode(',', ($form_values['default_format'] ? user_roles() : $roles)) .',';
$roles = ','. implode(',', ($form_values['default_format'] ? array_keys(user_roles()) : $roles)) .',';
db_query("UPDATE {filter_formats} SET cache = %d, name='%s', roles = '%s' WHERE format = %d", $cache, $name, $roles, $format);
......
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