Problem/Motivation
Currently you cannot set 0 on the maximum number of spaces for each registration, even through the descriptions states 0 means unlimited.
Steps to reproduce
Go to the registration settings and try to set 0 as the value on Spaces allowed.
Proposed resolution
Change base field definition to allow zero, and create a hook_update_n to change on existing installs.
Remaining tasks
Test and approve patch.
| Comment | File | Size | Author |
|---|
Comments
Comment #2
dubs commentedPatch here :-)
Comment #3
john.oltman commentedGood catch and thanks for the patch. It looks like what we need, I'll double check it with a local test and should have this committed within the next few days. Depending on what else comes up should be in a release fairly soon after that.
Comment #4
dubs commentedThanks John :-)
Comment #5
vitorbs commentedHey, i'll review it too.
Comment #6
vitorbs commentedComment #7
vitorbs commentedI tested without the patch and it don't allow to put 0 in the label, says that needs be more than 1 and after the patch all worked successfully. Moving to RTBC.
Comment #8
vitorbs commentedComment #10
john.oltman commentedCommitted. I had to change things a bit because the patch was against a previous version of the module and a hook update for 9001 already existed. Thanks for the catch and the test.
Comment #11
john.oltman commentedComment #12
john.oltman commentedComment #13
john.oltman commentedReleased in beta3
Comment #14
vitorbs commentedI needed to delete the class to apply the patch, but it worked well.