? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
31 Oct 2019

Summary of Changes

When filtering by keywords but no keywords are provided com_banners runs a query that always returns no results. We can avoid running such query.

This also fixes query error on PostgreSQL and MS SQL described in #26789.

Testing Instructions

Create some banners.
Publish a banner module.
Enable filtering by keywords in module.
Inspect the module when meta keywords are set and not set.

Expected result

When keywords are set, banners appear like before.
When keywords are not set, banners don't appear (like before) and there's 1 query less.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 31 Oct 2019
avatar SharkyKZ SharkyKZ - change - 31 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2019
Category Front End com_banners
avatar SharkyKZ SharkyKZ - change - 31 Oct 2019
Labels Added: ?
avatar SharkyKZ SharkyKZ - change - 31 Oct 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 31 Oct 2019
avatar viocassel viocassel - test_item - 1 Nov 2019 - Tested successfully
avatar viocassel
viocassel - comment - 1 Nov 2019

I have tested this item successfully on df78b37


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

avatar alikon
alikon - comment - 1 Nov 2019

@SharkyKZ i've submitted mine #26791 to you branch SharkyKZ#7 should be better to have 1 pr touching the same file, without don't work on postgresql/ms sql for the regexp issue

avatar alikon alikon - test_item - 1 Nov 2019 - Tested successfully
avatar alikon
alikon - comment - 1 Nov 2019

I have tested this item successfully on e2b9ec9


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

avatar viocassel viocassel - test_item - 1 Nov 2019 - Tested successfully
avatar viocassel
viocassel - comment - 1 Nov 2019

I have tested this item successfully on e2b9ec9


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

avatar alikon alikon - change - 1 Nov 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 1 Nov 2019

RTC


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

avatar rdeutz rdeutz - change - 24 Nov 2019
Labels Added: ?
avatar HLeithner
HLeithner - comment - 5 Dec 2019

Thanks for the optimization.

avatar HLeithner HLeithner - change - 5 Dec 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-12-05 22:07:59
Closed_By HLeithner
avatar HLeithner HLeithner - close - 5 Dec 2019
avatar HLeithner HLeithner - merge - 5 Dec 2019

Add a Comment

Login with GitHub to post a comment