After enabling the views and creating a page I started receiving

Notice: Trying to get property of non-object in registration_field_formatter_view() (line 115 of /Applications/MAMP/htdocs/egs/sites/all/modules/registration/includes/registration.field.inc)
I'm working on a patch but am just starting the transition from d6>7

Comments

richard.c.allen2386’s picture

Assigned: richard.c.allen2386 » Unassigned
richard.c.allen2386’s picture

Issue summary: View changes

put in incorrect message about the error

dpi’s picture

I believe this is due to a reference from a host entity to a deleted registration type.

Patch removes references to a registration type on delete and hook_formatter_view ensures the registration_type exists before continuing.

dpi’s picture

Version: 7.x-1.0-alpha5 » 7.x-1.x-dev
Component: Registration Views » Registration Core
Priority: Minor » Normal
Status: Active » Needs review
StatusFileSize
new2.38 KB

This is not due to views code.

Edit: patch is the same, seems I hit the back button to make a comment.

levelos’s picture

Status: Needs review » Fixed

Thanks dpi. Fixed with a minor tweak, namely the changed condition in the formatter view was incorrect. It was preventing the form from even displaying. Anyways, with the change in hook_entity_delete, shouldn't have to worry about it anymore.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

changed details

  • levelos committed f07d041 on 7.x-1.x, panels, any-entity, slots, integrations, hold_state authored by dpi
    #1532128 by dpi: Remove registraiton field when the value is a...