This is for registration_date_repeat.

When registration_date_repeat_field_widget_form is called, $form_state['registration']->entity is not defined. entity_extract_ids is called in that function and needs an entity.

Comments

jacob.embree’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.x-dev
Issue summary: View changes
idebr’s picture

Status: Active » Needs review
StatusFileSize
new5.99 KB

Attached patch fixes the EntityMalformedException on the registration page. In addition, the configuration for date_repeat is now saved correctly.

Status: Needs review » Needs work
idebr’s picture

Status: Needs work » Needs review
StatusFileSize
new16.47 KB

The patch test fails because registration_date_repeat.module was written with CRLF line endings. Attached patch converts the line endings to LF, so it can be applied on the testbot.

Status: Needs review » Needs work
idebr’s picture

Status: Needs work » Needs review
StatusFileSize
new16.47 KB

Status: Needs review » Needs work
jacob.embree’s picture

jacob.embree’s picture

Status: Needs work » Needs review
dat deaf drupaler’s picture

There's 3 syntax errors in this patch.. after fixing these typos, error went away and I am now able to save date repeat as instances.

Thank you for great work!

hor8tio’s picture

Can you please tell us where the 3 syntax errors are? I'm having trouble finding them myself. Gotta get this running asap.

dat deaf drupaler’s picture

StatusFileSize
new7.88 KB

Here's txt file with my revision.. I removed or add $ signs in 3 different places but cant remember where. Would someone be kind enough to create patch and test for this one?

jacob.embree’s picture

#12 has about four obvious mistakes. With those corrected the file matches the results of the patch in #8 perfectly.

#8 still needs review.