-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Featured Articles Author Column #45191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
### 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]>
@brianteeman I assume you meant #45179 . If that's right, please correct in the Summary of Changes. |
|
@richard67 thanks and corrected |
|
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. |
|
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. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45191. |
|
The dropdown has had "none" for a very long time. It is not added by this PR |
|
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 |
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 |
|
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. |
|
@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. |

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
Expected result AFTER applying this Pull Request
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