? ? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
20 Jan 2022

Summary of Changes

Smart Search tries to create its own language keys for the indexed taxonomies. Unfortunately, when there is no language string for the key, we get a "Search by PLG_FINDER_QUERY_FILTER_BRANCH_S_SOMETHING" in the search form in the frontend. This PR checks if a translation for the language key exists and if there is none (and debug is not enabled) it will instead display the taxonomy title instead.

Testing Instructions

  1. If you don't have the effect already, we need to add a fake taxonomy. Go to plugins/finder/content/content.php and add $item->addTaxonomy('Test', 'Strange'); after line 342.
  2. Reindex your site with the button in the backend.
  3. Go to the advanced search form in the frontend and see a dropdown with the label "Search by PLG_FINDER_QUERY_FILTER_BRANCH_S_TEST".
  4. Enable debugging and see that the string didn't change.
  5. Apply PR.
  6. See that the string didn't change with debugging enabled.
  7. Disable debugging.
  8. See now that the string is "Search by Test"
avatar Hackwar Hackwar - open - 20 Jan 2022
avatar Hackwar Hackwar - change - 20 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2022
Category Administration com_finder
avatar Hackwar Hackwar - change - 20 Jan 2022
Labels Added: ?
avatar Hackwar Hackwar - change - 20 Jan 2022
Title
[4.2] Smart Search: Fix missing taxonomy language string
[4.1] Smart Search: Fix missing taxonomy language string
avatar Hackwar Hackwar - edited - 20 Jan 2022
avatar Fedik Fedik - test_item - 20 Feb 2022 - Tested successfully
avatar Fedik
Fedik - comment - 20 Feb 2022

I have tested this item successfully on ee8d768


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36748.

avatar Fedik
Fedik - comment - 20 Feb 2022

Enable debugging and see that the string didn't change.
Apply PR.
See that the string didn't change with debugging enabled.
Disable debugging.

Or can just reindex again

avatar jwaisner jwaisner - test_item - 22 Feb 2022 - Tested successfully
avatar jwaisner
jwaisner - comment - 22 Feb 2022

I have tested this item successfully on ee8d768


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36748.

avatar jwaisner jwaisner - test_item - 22 Feb 2022 - Tested successfully
avatar jwaisner
jwaisner - comment - 22 Feb 2022

I have tested this item successfully on ee8d768


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36748.

avatar jwaisner jwaisner - change - 22 Feb 2022
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 22 Feb 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36748.

avatar bembelimen bembelimen - change - 3 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-03 02:46:03
Closed_By bembelimen
Labels Added: ?
avatar bembelimen bembelimen - close - 3 Mar 2022
avatar bembelimen bembelimen - merge - 3 Mar 2022
avatar bembelimen
bembelimen - comment - 3 Mar 2022

Thx

Add a Comment

Login with GitHub to post a comment