When adding a new room with Paid Events turned on, on save this error appears.

Notice: Undefined property: stdClass::$field_paid_event in cod_paid_events_node_presave() (line 12 of /home/user/public_html/profiles/cod/modules/contrib/cod_support/cod_paid_events/cod_paid_events.module).

Comments

kyletaylored’s picture

Seems to work.

peter.milan’s picture

The patch looks fine, worked also for me.

mordonez’s picture

Maybe it will better check if is a event content type and then select the desired field?

If so, I attached a patch with this behavior

Thanks!

mordonez’s picture

Status: Active » Needs review
rootwork’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #3 applied cleanly and fixed the error.

japerry’s picture

Project: Conference Organizing Distribution » Conference Organizing Distribution Support Modules

Moving to the cod_support queue.

japerry’s picture

Status: Reviewed & tested by the community » Fixed
japerry’s picture

Issue summary: View changes

Added entire error message

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jcl324’s picture

I've just updated all modules for including cod_support and still get this error, but now line 13. I've verified that the code in patch3 is in there. I'm still not getting the checkbox that I see in a lot of posts that supposedly tells this node it's a paid event. I guess I've missed some other configuration step.

Also, whatever I select for the Product, it doesn't get saved. This is probably another issue not related to this error so I'll keep digging.