Closed (fixed)
Project:
Entity Registration
Version:
7.x-1.4
Component:
Registration Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2015 at 11:17 UTC
Updated:
20 Nov 2015 at 21:22 UTC
Jump to comment: Most recent
Comments
Comment #1
hyperidler commentedI'm running Drupal 7.36 and encountered this same message after I started enabling the various registration states (Complete, Pending, Held, Cancelled).
After some trial and error I found that if I uncheck the "Held" column for all states the error went away. Basically, if you check any state with the "Held" column you will get this error.
I am not sure what function this column serves, but if I leave it unchecked I can see all of the options listed above for my registrations.
Comment #2
manuel garcia commentedYup, confirming this issue, ran into this while evaluating the module.
I think it's happening if you have both active and held checked on the state that the registration is going to go into.
This type of configuration could not make much sense perhaps, but the fatal error should be prevented.
Comment #3
caxy4 commentedThanks for the bug report @hyperidler and a recipe for reproducing the issue @Maluel Garcia
I've fixed the issue by adding validation to the registration state form with commit 64b5fa7
Comment #4
manuel garcia commentedHey thanks for the swift response / fix caxy4!
Comment #5
hawkbreeze commentedHi can I just make a comment here in that I think the words "pending" and "held" are being referred to as the same thing which I think is confusing. I've noticed this starting to creep into the module.
The confusion is that a Pending state (A registration state that has a label called pending) can be an Active or Held state.
Even in this patch the test is;
It tests for active or held states not "pending". So I think the wording should be "A state can only be "active" or "held" – not both. Update the "' . $state['label'] . '" state to resolve this warning"
This might seem trivial but using the word pending when referring to held is confusing and inconsistent.
Thanks
Comment #6
manuel garcia commentedThanks @cannod for the input!
I'm thinking the way forward would be to open a follow up issue, with your thoughts and the proposed solution, agree?
Comment #7
caxy4 commentedI've incorporated the error text update @cannod suggested in their last comment: df04198
Comment #8
manuel garcia commentedgood stuff, thanks again!