Through some trial and error I found that the Dec 22 release of References is causing all ampersands in select lists throughout my site (using User Reference) to show as & instead of "&". I myself am not sure what could be causing this, but I know for a fact that it's the newest version of the References module. I ran tests on fresh installs of drupal 7.10 with a previous version of References and everything works fine. As soon as I install the newer Dec 22 version 7.x-2.0 all ampersands in select lists turn to &. Please let me know if you need any information to fix this.

Comments

brettJames_’s picture

Issue summary: View changes

Correction: Only select lists using User Reference.

yched’s picture

Title: The latest release is causing all ampersands in select lists throughout my site to show as & instead of &. » ampersands in select lists shown as & instead of &.
Status: Active » Fixed
StatusFileSize
new2.13 KB

Right, 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.

Status: Fixed » Closed (fixed)

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

boobaa’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Component: Miscellaneous » Code: node_reference
Status: Closed (fixed) » Needs review
StatusFileSize
new659 bytes
new797 bytes

Don'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 expected Title 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.)

Status: Needs review » Needs work

The last submitted patch, references-1391814-3-2.x.patch, failed testing.

yched’s picture

Status: Needs work » Fixed
StatusFileSize
new4.14 KB

@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)

yched’s picture

00trav’s picture

Encountered 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).

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Fixed a couple of typos.