Closed (fixed)
Project:
Entity Registration
Version:
7.x-1.0
Component:
Registration Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2013 at 23:44 UTC
Updated:
27 Jun 2014 at 21:08 UTC
Jump to comment: Most recent, Most recent file
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().