J4 Issue ? ?
avatar chmst
chmst
30 Apr 2021

Steps to reproduce the issue

You should have one or more categories and tags (install blog sample data).
Open categories. Open Filter and filter for a tag. If nothing is found, the "New-Page" appears.
No chance to get back to categories overview.

Expected result

If nothing is found, I expect a message as usual

Actual result

Result: The "New-Page" appears.
No chance to come back to categories overview.

System information (as much as possible)

Additional comments

avatar chmst chmst - open - 30 Apr 2021
avatar joomla-cms-bot joomla-cms-bot - change - 30 Apr 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Apr 2021
avatar chmst chmst - change - 30 Apr 2021
Labels Added: J4 Issue ? ?
avatar chmst chmst - labeled - 30 Apr 2021
avatar chmst chmst - labeled - 30 Apr 2021
avatar chmst chmst - labeled - 30 Apr 2021
avatar brianteeman
brianteeman - comment - 30 Apr 2021

Its a bug but hardly a release blocker

avatar brianteeman
brianteeman - comment - 30 Apr 2021

@PhilETaylor @Bakual This is a bug in the emptystate code for categories

avatar Bakual
Bakual - comment - 30 Apr 2021

I think this has to be fixed here:

$sql = $this->query
->clear('select')
->clear('values')
->clear('bounded')
->clear('limit')
->clear('order')
->clear('where')
->select('count(*)');

Either clear also the "join", or maybe better just start with a new query instead of manipulating the existing one.

avatar Bakual
Bakual - comment - 30 Apr 2021

Btw same issue exists for other views where you can filter by tags (or probably any joined table property).

avatar PhilETaylor
PhilETaylor - comment - 30 Apr 2021

ok ok ok give me a moment.

avatar PhilETaylor
PhilETaylor - comment - 30 Apr 2021

Please test [4] remove join from isEmptyState calculation sql #33453

avatar PhilETaylor
PhilETaylor - comment - 30 Apr 2021

This can be closed, and certainly is not a release blocker.

avatar Quy Quy - change - 30 Apr 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-04-30 23:24:00
Closed_By Quy
Labels Added: ? ?
Removed: ? ?
avatar Quy Quy - close - 30 Apr 2021
avatar Quy
Quy - comment - 30 Apr 2021

Thank you!

avatar Quy Quy - change - 30 Apr 2021
Labels Removed: ?
avatar Quy Quy - unlabeled - 30 Apr 2021

Add a Comment

Login with GitHub to post a comment