? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
4 Nov 2019

Summary of Changes

Fixes condition in query when searching for items. Before patch, OR is used as outer glue for search conditions. With patch outer glue is changed to AND.

Testing Instructions

Enter some keywords in search form and use filters in these views in backend:

CSP Reports
Modules
Redirect Links
Template Styles
Templates
User Group Debug
User Debug
User Notes

Expected result

Items are filtered by filters and keywords.

Actual result

Items are filtered by filters or keywords.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 4 Nov 2019
avatar SharkyKZ SharkyKZ - change - 4 Nov 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2019
Category Administration com_csp com_modules com_redirect com_templates com_users
avatar richard67
richard67 - comment - 4 Nov 2019

@SharkyKZ Where do I find "User Debug" and "User Group Debug"?

avatar SharkyKZ
SharkyKZ - comment - 5 Nov 2019

When viewing users/groups click the icon in Permissions column.

avatar richard67
richard67 - comment - 5 Nov 2019

Ah, yes, I remember. Thanks for the reminder.
Will test tonight after work, German time. When I tested last night I got an error about missing bind variable when testing template styles without this PR applied. I think this will not be fixed with this PR. Maybe you can check that?

avatar SharkyKZ
SharkyKZ - comment - 5 Nov 2019

Looking into it.

avatar SharkyKZ
SharkyKZ - comment - 5 Nov 2019

Test PR #26990 please.

avatar richard67 richard67 - test_item - 5 Nov 2019 - Tested successfully
avatar richard67
richard67 - comment - 5 Nov 2019

I have tested this item successfully on ebf8b56

  • CSP Reports: No change, worked before and works with this PR. Reason: The critical "orWhere" was the last possible where clause for filtering.

    But the change of this PR makes it safe in case if processing of some new filter will be added after that to the php source.

  • Modules: This PR fixes the described error.

    Hint for other testers: This case has to be tested with the filter by language, because this is the only one which comes after the critical "orWhere".

  • Redirect links: Same as for CSP Reports above.

  • Template styles: Same as for CSP Reports above.

    Hint for other testers testing with patchtester: If you hit a 500 error, reason might be that the branch of this PR is not up to date with latest merge of PR #26990 4.0-dev.

    In this case either wait until @SharkyKZ has updated the branch for this PR here to latest changed in 4.0-dev, or apply the typo correction ":menuiteid" -> ":menuitemid", too, in attition to the changes in this PR here.

    With patchtester you can't do that because both PRs modify the same file.

  • Templates: Can't really test because having only 1 template of each kind admin and site, but code review looks good.

    Result should be same as for CSP Reports above, i.e. no change but safer for future extensions.

  • User Group Debug: This PR fixes the described error.

  • User Debug: This PR fixes the described error.

  • User notes: This PR fixes the described error.


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

avatar richard67
richard67 - comment - 5 Nov 2019

I have tested this item successfully on ebf8b56

- CSP Reports: No change, worked before and works with this PR. Reason: The critical "orWhere" was the last possible where clause for filtering.
But the change of this PR makes it safe in case if processing of some new filter will be added after that to the php source.

  • Modules: This PR fixes the described error.

    Hint for other testers: This case has to be tested with the filter by language, because this is the only one which comes after the critical "orWhere".

  • Redirect links: Same as for CSP Reports above.

  • Template styles: Same as for CSP Reports above.

    Hint for other testers: If you hit a 500 error, reason might be that branch of this PR is not up to date with latest merge of PR #26990 4.0-dev.
    In this case either wait until @SharkyKZ has updated the branch for this PR here to latest changed in 4.0-dev, or apply the typo correction ":menuiteid" -> ":menuitemid", too, in attition to the changes in this PR here.
    With patchtester you can't do that because both PRs modify the same file.

  • Templates: Can't really test because having only 1 template of each kind admin and site, but code review looks good. Result should be same as for CSP Reports above, i.e. no change but safer for future extensions.

  • User Group Debug: This PR fixes the described error.

  • User Debug: This PR fixes the described error.

  • User notes: This PR fixes the described error.


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

avatar richard67
richard67 - comment - 5 Nov 2019

@SharkyKZ Too late for testing PR #26990 ... was already merged when I was back from work.


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

avatar SharkyKZ SharkyKZ - change - 6 Nov 2019
Labels Added: ?
avatar richard67
richard67 - comment - 10 Nov 2019

@infograf768 Could you test this PR here? It is related to other stuff we recently had with filtering in backend lists.

avatar Quy Quy - test_item - 10 Nov 2019 - Tested successfully
avatar Quy
Quy - comment - 10 Nov 2019

I have tested this item successfully on 7ae62e1


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

avatar Quy Quy - change - 10 Nov 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Nov 2019

RTC


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

avatar infograf768 infograf768 - change - 11 Nov 2019
Labels Added: ?
avatar wilsonge wilsonge - change - 24 Nov 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-11-24 18:10:36
Closed_By wilsonge
avatar wilsonge wilsonge - close - 24 Nov 2019
avatar wilsonge wilsonge - merge - 24 Nov 2019
avatar wilsonge
wilsonge - comment - 24 Nov 2019

Thanks!

Add a Comment

Login with GitHub to post a comment