When I add any type of relationship, I get an ajax error due to an issue in admin.inc getting the label of the relationship handler. Two snapshots attached.

There is a @todo in the code // @todo: get_handlers() but since this is breaking relationships unnecessarily I figured I would have a stab at the correct fix, at least to circumvent the problem for ourselves. Patch supplied.

I've tagged this "major" because when you add a relationship you break aspects of the views UI and have to delete the view to remove the relationship.

Comments

Scott Reynolds’s picture

Priority: Major » Critical
Status: Needs review » Reviewed & tested by the community

Thanks for the patch. worked great. Critical as relationships don't work period without this.

dawehner’s picture

Isn't this the same issue as #759082: Invalid argument supplied for foreach in admin.inc line 1296 ?

The fix look a bit different here.

Scott Reynolds’s picture

Ya they are the same but 7-3 and 6-3 seem out of sync right here. Should take the time to rectify that situation. i.e. patch in #759082: Invalid argument supplied for foreach in admin.inc line 1296 won't apply because in the D7 port does call views_get_handler, and it already uses $display->handler->get_option('relationships');

merlinofchaos’s picture

Assigned: Unassigned » dawehner
dawehner’s picture

Assigned: dawehner » Unassigned
Status: Reviewed & tested by the community » Fixed

Commited to both 3.x branches.

sime’s picture

Thanks for the swift fix and patch credit!

sirkitree’s picture

Awesomeness - thank you :)

Status: Fixed » Closed (fixed)

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