Closed (fixed)
Project:
Synonyms
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2017 at 07:12 UTC
Updated:
14 Jul 2017 at 13:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bucefal91 commentedHello!
I attach a patch that solves the issue. Actually not only with HTML but overall the synonyms integration with ""Views: Filter by an entity reference view." was pretty poor.
There is only 1 conceptual limitation: the synonyms autocomplete suggestions will always use entity label and not what the view renders. We must obey this principle because when the form is submitted, the synonyms module looks up all entities by their labels and thus knows which entity the user actually meant. If we start putting in there anything else but the entity labels we will confuse this mechanism of recognition and will break things.
However, that's the only thing limitation I currently see in this patch. Anyway, I think most of the people do not need anything fancier than entity name in the suggestion.
I have 100% tests pass on my local development environment.
Comment #4
bucefal91 commentedCommitted into the development snapshot.