Admin Global Search was build in a hurry #7698
Labels
bug report
Component: Search
Component: Translation
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
The admin global search is not entirely translatable, extensible and does not take into account the ACL settings for the current user
Preconditions
Installed Version: 2.2.0-dev
Steps to reproduce
Expected result
Actual result
Additional information.
The actual results explained above happen because the template that displays the global search results contains the hardcoded values for the links to pages, customers, products and orders. (lines 30 to 41) and the texts "in products", "in pages" don't go through the translation function
__
.Additional issues related to the global search.
The global search is partially extensible (without changing the template that renders the results).
I can add my own entity that can be searchable in the global search but I cannot add a link. For example if I have an entity called "Article", I can make the instances searchable but I cannot get a link saying "keywords in Articles" without changing the template.
Suggestion to make it extensible and to avoid ACL related issues.
The links "keywords in ..." should come from the
di.xml
file and have the ACL for those links checked before displaying the links. Similar to how the actual entity search works.The text was updated successfully, but these errors were encountered: