Some fixes to waitlist, and making the module waitlist aware and separating out some functionality into functions so the waitlist module can use them too (like counting registrations). This also by necessity fixes #2480453: Show something to the user when he's already registered by implementing the access hook; if the user is the one registered, they have access to see the field state even if that state isn't a registration form.
Also, created rule file for waitlist to move people from waitlist to registered if somebody cancels their registration.
Comment | File | Size | Author |
---|---|---|---|
#6 | registration-waitlist-aware-2481203-6.patch | 7.85 KB | travelertt |
#3 | reg_waitlist_aware.patch | 12.89 KB | Renee S |
registration_waitlist.rules_.inc_.txt | 3.86 KB | Renee S |
Comments
Comment #1
Renee S CreditAttribution: Renee S commentedExample rule:
Comment #2
Renee S CreditAttribution: Renee S commentedComment #3
Renee S CreditAttribution: Renee S commentedSorry, fixed some ... things ;)
Comment #4
Renee S CreditAttribution: Renee S commentedComment #5
dsnopekHere is another issue which patches registration_waitlist to automatically convert 'waitlist' registrations to 'complete' (rather than using Rules):
#2258117: Waitlist doesn't automatically change 'waitlist' registrations to 'complete' when slots become available
The issue summary there describes why I think this makes sense.
Comment #6
travelerttRerolled patch to work with current DEV. Also cleaned up patch some (removed .patch file that was included in patch).
In regards to #5. That patch doesn't account for capacity or count, and only promotes 1 registration instead of checking for more or checking the capacity versus the count of the registration.
Comment #7
Bruno Nery CreditAttribution: Bruno Nery as a volunteer commentedHow can I configure the waiting list to receive the registration of only one user?
Comment #8
Chris Matthews CreditAttribution: Chris Matthews commented@travelertt, how did you create the patch in #6?
When I run:
git clone --branch 7.x-1.x https://git.drupal.org/project/registration.git
cd registration
curl -O https://www.drupal.org/files/issues/registration-waitlist-aware-2481203-...
git apply -v registration-waitlist-aware-2481203-6.patch
I get:
error: docroot/sites/all/modules/registration/includes/registration.field.inc: No such file or directory
error: docroot/sites/all/modules/registration/modules/registration_waitlist/registration_waitlist.module: No such file or directory
error: docroot/sites/all/modules/registration/registration.module: No such file or directory
You'll need to remove the following from your patch file:
error: docroot/sites/all/modules/registration/includes/registration.field.inc: No such file or directorydocroot/sites/all/modules/registration/modules/registration_waitlist/registration_waitlist.module: No such file or directorydocroot/sites/all/modules/registration/registration.module: No such file or directoryComment #9
joelpittetYeah this just needs --relative from the project directory when creating within an existing project but really using the git release is probably best.
Comment #10
john.oltman CreditAttribution: john.oltman at SiteBasin, Inc. commented