Closed (fixed)
Project:
Entity Registration
Version:
7.x-1.x-dev
Component:
Registration Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2013 at 17:23 UTC
Updated:
27 Jun 2014 at 21:08 UTC
Jump to comment: Most recent
Comments
Comment #1
drummAgreed that registrant_type() should always return something valid.
I don't know enough about the structure to say if
REGISTRATION_REGISTRANT_TYPE_ANONis the correct thing to return. For us, the user won't have access to do that, but that might be mitigated by fixing up commerce_registration to make sure the registration entity is properly populated.If the behavior is indeed intended for some reason, the documentation should be updated so we know when to expect NULL.
Comment #2
levelos commentedI don't believe we should return
REGISTRATION_REGISTRANT_TYPE_ANONas a default. I can't think of a use case where account is empty AND there's no anon_email set. Default return set to NULL and header updated.