Closed (fixed)
Project:
References
Version:
7.x-2.x-dev
Component:
Code: node_reference
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2012 at 15:30 UTC
Updated:
2 Mar 2012 at 19:30 UTC
Jump to comment: Most recent file
Comments
Comment #0.0
brettJames_ commentedCorrection: Only select lists using User Reference.
Comment #1
yched commentedRight, I introduced that regression in #1155946: "radios / checkboxes" widget could support HTML tags (img...) coming from views.
I committed the attached patch in 7.0-2.x, which should fix this.
Comment #3
boobaaDon't know if it's OK to reopen this issue, but my one seems to be related.
If I have an exposed filter of referenced nodes, I have the filter's
<select>box filled with<span class="views-field views-field-title"> <span class="field-content"><a href="/node/1">Title 1</a></span> </span>and alike (instead of the expectedTitle 1).Attached patches solves this issue, but I must admit that I don't know if they introduce new/reopen old issues. (Attaching patches for both references-7.x-2.0 and references-7.x-2.x-as-of-now.)
Comment #5
yched commented@Boobaa : Correct. Views uses this same list of options to display checkboxes (in the filter settings form) and select dropdowns (in exposed filters). Problem is, those two form elements have completely different requirements in terms of sanitization.
Attached patch is the correct fix - committed to 2.x.
(side note : patch also fixes a name mismatch between the function names in node_reference and user_reference modules. Update function included, so that the views info cache is rebuilt and catches the change)
Comment #6
yched commentedCreated #1436598: Sanitation dilemma for 'options_callback' in Views issue queue.
Comment #7
00trav commentedEncountered this problem when upgrading to 2.0. Posting here for others that run into this problem.
Fixed by upgraded to latest Dev version (2012-Feb-11).
Comment #8.0
(not verified) commentedFixed a couple of typos.