Page MenuHomePhabricator

Wrong element selected when choosing from search results
Closed, ResolvedPublicBUG REPORT


Steps to Reproduce: (tested on Vector and Monobook, should not depend on skin) Select English language (for this example), open any file, add any property and search for “Universe”. Q1 should appear first. Click from the other results on Q50816190 or Q69170 or any other element with an exactly same label. This does not work when the label is different, including different capitalisation.

Actual Results: Q1 is chosen instead of the selected element (more generally, it is the first element in the search results with the same shown label).

Expected Results: The selected label be set as the value for the statement

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptMar 4 2020, 5:42 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 577249 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Ensure correct entity id is used when choosing between same-label options

Change 577249 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Ensure correct entity id is used when choosing between same-label options

I'm going to give this one a shot on Beta Commons by creating some same-name items on Beta Wikidata

Tested on Beta Commons (with the 2 Earth entities on Beta Wikidata) and works as expected

Ramsey-WMF closed this task as Resolved.Mar 23 2020, 6:31 PM

Verified working on production.

Yes, forgot to write here that everything was working on Commons now.