Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: ezra-g commentedMarking as "needs work" per #3.
Comment #5
Matt V. CreditAttribution: 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 CreditAttribution: levelos commentedThanks gang. Registration depends on Entity API, so used
entity_load_single()
.