Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to reproduce?
1) Goto admin/access/rules/add
2) Fill in the form and submit
3) Try to edit the rules. Nope. The form is empty.
1) Goto admin/logs/visitors
2) Choose any row and click 'ban'
3) What do you see? heh, it's a nice empty form.
What happens?
The form is built by function _user_admin_access_form(), which gets the $edit array as its argument. However, this array is not used to populate the #default_value element of form fields.
Please, see attached patch.
Comment | File | Size | Author |
---|---|---|---|
user.module.access_rules.patch | 1015 bytes | markus_petrux | |
Comments
Comment #1
adrian CreditAttribution: adrian commentedtested and works as advertised.
+1
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commented