When I'm using the Select List widget, the views list works as expected, but when I enable the URL widget, the select list now contains a lot of HTML-code. This is the display in the select list, when the view is set to only show the username non-linked:
<span class="views-field views-field-name"> <span class="field-content"> [username] </span></span>

If I disable the URL-widget, only the Username is displayed in the select list, as expected.

Of course, this is the fallback-method if the author clicks create node and then selects user, and the normal behaviour is to create the node from a user-related link (the field is prepopulated).
Related issue #1861590: References node views fallback select list widget shows views html in options

CommentFileSizeAuthor
#1 1860696-1.patch945 bytesjibran

Comments

jibran’s picture

Title: Views - Users that can be referenced » References user views fallback select list widget shows views html in options
Status: Active » Needs review
StatusFileSize
new945 bytes

This will fix the problem.

jibran’s picture

Issue summary: View changes

added tag

eminencehealthcare’s picture

Patch works great. You saved me from having to use entity reference prepopulate (I already have data in the database would have been a pain to switch). Thank you!

jibran’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs review » Fixed

Committed and Pushed to latest dev 578763b. Thanks for the testing.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Added related issue