- Issue created by @nikit
- πΈπ°Slovakia tomas.teicher
For me, the #5 solution works OK, but not for multivalue field. When I start to type a text in the textfield, and this text is found in some particular entity, it returns all field values from an entity as one text, where field values are separated with comma.
Example:
Entity A has field values:- Paris
- London
- New York
Start typing "Lond" in entity B, and autocomplete will return: "Paris, London, New York". This happens even when "Display all values in the same row" option is unchecked in View field settings.
The problem is in Views itself, in particular in Drupal\views\Plugin\views\field\FieldPluginBase::getValue method. it ignores "same row" option and always returns all field values (from particular entity) in the same row.
When using "advancedRender" method, as it is done in this patch, then the mentioned problematic Views method is called, too.
I have no idea, how to solve it, without changing something in Views, anyway.