? ? ? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
7 Jun 2020

This again fixes several issues in Smart Search:

  • This adds the GUI option to sort also by title, besides relevance and the other options. The code was already in the model, but not accesible by GUI.
  • The ordering itself was broken and could not be influenced by the URI. A URL parameter was handed over, but never read.
  • #18358 Simply said, I don't really understand why we should add the class "disabled" to a button just because the search is empty. The button still works the same as without that class and thus I'm rather removing this altogether.
  • The name from the button is removed, thus reducing the number of URL parameters.

Only works when #29428 is merged.

avatar Hackwar Hackwar - open - 7 Jun 2020
avatar Hackwar Hackwar - change - 7 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jun 2020
Category Administration Language & Strings Front End com_finder
avatar Hackwar Hackwar - change - 7 Jun 2020
Labels Added: ? ?
avatar Quy
Quy - comment - 11 Jun 2020

Add option to Global Configuration > Smart Search.

avatar Quy
Quy - comment - 11 Jun 2020

PHP Warning: mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement in \libraries\vendor\joomla\database\src\Mysqli\MysqliStatement.php on line 420

() | JROOT\components\com_finder\src\View\Search\HtmlView.php:146
-- | --
2 | Joomla\Component\Finder\Site\View\Search\HtmlView->display() | JROOT\libraries\src\MVC\Controller\BaseController.php:691
3 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT\components\com_finder\src\Controller\DisplayController.php:59
4 | Joomla\Component\Finder\Site\Controller\DisplayController->display() | JROOT\libraries\src\MVC\Controller\BaseController.php:729
5 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:146
6 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT\libraries\src\Component\ComponentHelper.php:384
7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT\libraries\src\Application\SiteApplication.php:201
8 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT\libraries\src\Application\SiteApplication.php:240
9 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT\libraries\src\Application\CMSApplication.php:231
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT\includes\app.php:63
11 | require_once() | JROOT\index.php:36
avatar Hackwar
Hackwar - comment - 12 Jun 2020

PHP Warning: mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement in \libraries\vendor\joomla\database\src\Mysqli\MysqliStatement.php on line 420

As I wrote, this PR doesn't work without the other PR being merged. This has happened in the meantime. This PR has been updated. Please test again.

avatar Quy
Quy - comment - 12 Jun 2020

Installed sample testing data.
Set Title for Sort Field.
Search results are not sorted by title.

avatar Hackwar
Hackwar - comment - 6 Jul 2020

@Quy should work now. Please test again.

avatar Quy Quy - test_item - 6 Jul 2020 - Tested successfully
avatar Quy
Quy - comment - 6 Jul 2020

I have tested this item successfully on bb2b688


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

avatar jwaisner jwaisner - test_item - 10 Jul 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 10 Jul 2020

I have tested this item successfully on bb2b688


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

avatar jwaisner jwaisner - change - 10 Jul 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 10 Jul 2020

RTC


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

avatar richard67
richard67 - comment - 20 Jul 2020

Thanks!

avatar richard67 richard67 - close - 20 Jul 2020
avatar richard67 richard67 - merge - 20 Jul 2020
avatar richard67 richard67 - change - 20 Jul 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-07-20 21:22:19
Closed_By richard67
Labels Added: ?

Add a Comment

Login with GitHub to post a comment