Skip to content

Conversation

@brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Mar 21, 2025

Summary of Changes

There is a check in the Author column to display the author name if the id is not 0 else to display the author as None

I believe this check to be incorrect. When a user is deleted from the users table the created_by in the content table is untouched so the condition in the query is never passed.

This PR changes the condition to check for the author_name and this way we can satisfy the condition and are able to display the author as None

This PR does not fix the related problem in the authors filter where you can not filter by author None even though it is intended that you can.

This changes in this PR if accepted will need to be applied to all other components with the same condition

Testing Instructions

Create two users
Create articles with each user
Delete one of the users

Actual result BEFORE applying this Pull Request

image

Expected result AFTER applying this Pull Request

image

Link to documentations

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

There is a check in the Author column to display the author name if the id is not 0 else to display the author as None

I believe this check to be incorrect. When a user is deleted from the users table the created_by in the content table is untouched so the condition in the query is never passed.

This PR changes the condition to check for the author_name and this way we can satisfy the condition and are able to display the author as None

This PR does not fix the related problem in the authors filter where you can not filter by author None even though it is intended that you can.

Signed-off-by: BrianTeeman <[email protected]>
@ghost
Copy link

ghost commented Mar 21, 2025

I have tested this item ✅ successfully on 270ed2a

Without PR with PR
without with

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

@ChristineWk
Copy link

I have tested this item ✅ successfully on 270ed2a


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 22, 2025
@bembelimen bembelimen merged commit f0eddc4 into joomla:5.3-dev Mar 25, 2025
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 25, 2025
@bembelimen
Copy link
Contributor

Thx

@bembelimen bembelimen added this to the Joomla! 5.3.0 milestone Mar 25, 2025
@brianteeman brianteeman deleted the author_none branch March 26, 2025 08:27
@brianteeman
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants