Closed (fixed)
Project:
Role Limits
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jan 2011 at 12:11 UTC
Updated:
19 Nov 2011 at 12:24 UTC
Jump to comment: Most recent file
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 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 commentedPatch so far seems to work on my install pretty flawless. I'll roll this into a release next week.
Comment #3
webkenny commented