Active
Project:
Entity reference
Version:
7.x-1.0-rc5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2012 at 22:35 UTC
Updated:
2 Jun 2015 at 13:21 UTC
Jump to comment: Most recent
Hi guys,
So the issue is this:
Entity Reference using views, to pull the NID of the editing node from the URL and use it as a contextual filter.
This is fine for one value, but as soon as the 'Remove' or 'Add an Item' buttons are clicked, all the dropdowns generated by the view are emptied.
This due to the fact that the Request URI seen by the view at this point is '/field_collection/ajax' not 'node/#/edit'
There needs to be an updated views handler for this scenario to return the correct NID to the view.
Cheers!
Chris
Comments
Comment #1
thomasdegraaff commentedAlso effects me.
Comment #2
jody lynnYou can also run into this by uploading a file when editing the node, as that also creates an ajax request.
Comment #3
jody lynnSee also #2358049: Contextual filter - Provide default value - Content ID from URL not working on ajax requests
Comment #4
ladybug_3777 commentedThanks for pointing to the other post in views Jody!! This helps me clarify what is going on a little more.
Comment #5
JvE commentedCan this be closed as a duplicate of that other issue? That one seems more active and has patches.