Matching results are not shown when label is changed

Created on 1 July 2024, 4 months ago
Updated 11 July 2024, 3 months ago

Problem/Motivation

When changing the label of a result to something completely different, the result is no longer being shown in the dropdown, even though it's present in the entity autocomplete JSON response.

Steps to reproduce

Implement hook_tagify_autocomplete_match_alter() like this:

/**
 * Implements hook_tagify_autocomplete_match_alter().
 */
function my_module_tagify_autocomplete_match_alter(?string &$label, ?string &$info_label, array $context): void
{
    $label = 'Test';
}

Search for the original title of an entity. It should appear in the search results with 'Test' as label, but it doesn't.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024