In the registration_status function, it doesn't look like the entity is loaded or defined, causing this issue to occur:
Notice: Undefined variable: entity in registration_status() (line 1075 of /modules/contrib/registration/registration.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | entity_load-1899384-5.patch | 672 bytes | matt v. |
| #2 | 1899384-entity_load.patch | 634 bytes | japerry |
Comments
Comment #1
japerryWorking on a patch :-)
Comment #2
japerryPatch goodness!~
Comment #3
jhm commentedI am afraid that patch doesn't work since entity_load returns an array of entities, but
$registration_type = registration_get_entity_registration_type($entity_type, $entity);expects a single entity object. The patch should be
Comment #4
ezra-g commentedMarking as "needs work" per #3.
Comment #5
matt v. commentedThe patch from #2 worked for me, at least in terms of eliminating the error. But I went ahead and created a new one, based on jhm's code above.
Comment #6
levelos commentedThanks gang. Registration depends on Entity API, so used
entity_load_single().