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.
When a user enters a number for a role limit which is lower than the number of users already in the role, Role Limits should report "You cannot enter a limit which is less than the number of registered users in the @role role" - Instead, the following error appears:
Notice: Undefined variable: form_values in role_limits_admin_settings_validate() (line 130 of /Users/kennys/Sites/drupal7/sites/all/modules/role_limits/role_limits.module).
The value is also saved. Working on a patch now to fix this issue.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1017100-validation-fix.patch | 1.13 KB | webkenny |
Comments
Comment #1
webkenny CreditAttribution: webkenny commentedThe attached patch corrects some legacy code that crept it's way in from the Drupal 5 version of the module. Fixes the validation error noted above. Has been committed to 7.x-1.x-DEV which has not been packaged yet.
Comment #2
webkenny CreditAttribution: webkenny commentedPatch so far seems to work on my install pretty flawless. I'll roll this into a release next week.
Comment #3
webkenny CreditAttribution: webkenny commented