Skip to content

Conversation

@brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Mar 23, 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 in the featured articles and this way we can satisfy the condition and are able to display the author as None

This PR is the same as #45179 but for the featured articles view

Testing Instructions

Create two users
Create featured 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

### 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 in the featured articles and this way we can satisfy the condition and are able to display the author as None

_This PR is the same as joomla#45170 but for the featured articles view_

### Testing Instructions
Create two users
Create featured articles with each user
Delete one of the users

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

This PR is the same as #45170 but for the featured articles view

@brianteeman I assume you meant #45179 . If that's right, please correct in the Summary of Changes.

@brianteeman
Copy link
Contributor Author

@richard67 thanks and corrected

@ghost
Copy link

ghost commented Mar 24, 2025

I have tested this item ✅ successfully on 5711649

Test by using the custom update server of the prebuilt packages.


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

@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 5711649


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

@QuyTon
Copy link
Contributor

QuyTon commented Mar 24, 2025

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 24, 2025
@MacJoom
Copy link
Contributor

MacJoom commented Mar 26, 2025

Thanks for the PR - I suggest using '- None -' instead of 'None' since its technicallly possible to have a user called 'None' - And to be consistent in the search dropdown we should use the same. In the screenshot i have added a user 'None' and deleted a user beeing the author of an article. (Must not be red...) - and alas is it is even possible to have a user named '- None -'
screenshot

@brianteeman
Copy link
Contributor Author

The dropdown has had "none" for a very long time. It is not added by this PR

@MacJoom
Copy link
Contributor

MacJoom commented Mar 26, 2025

And to be even more consistent, 'created my me' could be '- created my me -' so it would make it clear, that this is a 'pseudo' search possibilty

@MacJoom
Copy link
Contributor

MacJoom commented Mar 26, 2025

The dropdown has had "none" for a very long time. It is not added by this PR

Yes i know - but you might be able to work on it.

@brianteeman
Copy link
Contributor Author

The dropdown has had "none" for a very long time. It is not added by this PR

Yes i know - but you might be able to work on it.

Beyond the scope of this PR as to do it correctly it would need to be changed everywhere

@rdeutz rdeutz changed the title [5.3] Featured Articles Author Column [5.4] Featured Articles Author Column Mar 27, 2025
@rdeutz
Copy link
Contributor

rdeutz commented Mar 27, 2025

It was discussed in the maintainers meeting and we decided to move this to 5.4 to give it more time to do it in a way that it covers also possible "strange" user names.


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

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 27, 2025
@rdeutz rdeutz changed the base branch from 5.3-dev to 5.4-dev March 27, 2025 08:09
@brianteeman
Copy link
Contributor Author

@rdeutz I fully understand the "strange username" aspect BUT this PR is only to bring the featured articles view in line with the existing articles view. The "strange username" issue is easy to handle but it has a much bigger scope than this simple PR as it has an impact on lots of different places and will require a new language string. In short this PR should be merged as it is and then I will make a new PR to address the "strange username" everywhere that it can appear.

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.

7 participants