User tests: Successful: Unsuccessful:
This PR fixes a bug where filtering articles by Author = None did not return articles created by deleted users. Joomla previously used created_by = 0
for the "None" filter, but in reality, deleted users leave their created_by
values intact in the #__content
table — they just no longer exist in the #__users
table.
This fix updates the logic to:
0
(representing "None")created_by NOT IN (SELECT id FROM #__users)
author_id = [0, 42]
, to include both deleted users and existing onesThis PR is a continuation and enhancement of #45186, extending support to "by_me"
and fixing edge cases in combined filters.
created_by = 0
was used incorrectly.created_by NOT IN (SELECT id FROM #__users)
for deleted users.'Created by me'
filter is correctly replaced with the logged-in user's ID.["by_me"]
.Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content |
Labels |
Added:
PR-5.3-dev
PR-5.4-dev
|
@AdarshSantoria Could you extend the testing instructions by a test case for the "Created by me" filter? Thanks in advance.
Thanks for the suggestion. I will add the "Created by me" test case to the instructions.
This extends the original test coverage for the "Created by me"
filters using the following setup:
@brianteeman @fgsw Could you test this PR, too? Thanks in advance.
I have tested this item ✅ successfully on c8faaf9
I have tested this item ✅ successfully on c8faaf9
Status | Pending | ⇒ | Ready to Commit |
RTC
I have tested this item ✅ successfully on c8faaf9
Not sure if previous human tests were also made with PostgreSQL, so I've just tested that.
Labels |
Added:
RTC
Removed: PR-5.3-dev |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-04-13 13:07:59 |
Closed_By | ⇒ | richard67 |
Thanks all (author and testers).
@AdarshSantoria Could you extend the testing instructions by a test case for the "Created by me" filter? Thanks in advance.