Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Views Content
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2011 at 00:09 UTC
Updated:
20 Jul 2026 at 17:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eclipsegc commentedComment #2
eclipsegc commentedAn update to this. This should version of the patch will actually add a NULL spacer into the context where it should exist, so if a plugin takes 3 contexts, the first is required the next 2 are optional, and you only pass the second you'd still have a NULL context in place of the optional context you didn't pass. This allows modules like views to expect to get all the contexts they can address, and we rely on the argument handling to return the view properly at that point.
This will need some further testing, but I don't anticipate it causing issues for existing plugins.
Comment #3
merlinofchaos commentedI believe this may be fixed by #1263896: "context exists" access plugin broken (patch) instead?
Comment #4
eclipsegc commentedThis patch is about allowing empty contexts to exist for views that take optional contexts. The other patch being present didn't seem to have any bearing on this as far as I could tell.
Eclipse
Comment #5
eclipsegc commentedRerolled against 7.x-1.x.
Comment #6
eclipsegc commentedThis is better, it actually works for NULL contexts that are the first argument.
Comment #7
damienmckennaComment #9
geek-merlinCrosslinking 2 other issues with nearly the same patch. We should really consolidate that.
Comment #10
chris matthews commentedThe 6 year old patch in #6 does not apply to the latest ctools 7.x-1.x-dev.
Comment #11
shubham.prakash commentedComment #12
damienmckennaComment #13
joelpittetI committed #2399313: Relationship silently left out if it has optional required context so this needs another reroll. Also that might have helped solve part of what this patch is trying to do.
Comment #14
adityasingh commentedReroll the patch.
Comment #17
japerryDrupal 7 is no longer supported, closing.