Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2010 at 05:38 UTC
Updated:
15 Jan 2011 at 23:50 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| admin-handler-label.patch | 789 bytes | sime | |
| taxonomy-node-relationship.jpg | 112.63 KB | sime | |
| node-author-relationship.jpg | 158.46 KB | sime |
Comments
Comment #1
Scott Reynolds commentedThanks for the patch. worked great. Critical as relationships don't work period without this.
Comment #2
dawehnerIsn't this the same issue as #759082: Invalid argument supplied for foreach in admin.inc line 1296 ?
The fix look a bit different here.
Comment #3
Scott Reynolds commentedYa 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');
Comment #4
merlinofchaos commentedHm. I may've erred when I committed #759082: Invalid argument supplied for foreach in admin.inc line 1296 to d7.
Comment #5
dawehnerCommited to both 3.x branches.
Comment #6
simeThanks for the swift fix and patch credit!
Comment #7
sirkitree commentedAwesomeness - thank you :)