User tests: Successful: Unsuccessful:
… selector #47489
Pull Request resolves #47489.
Expired articles were displaying a green published icon instead of the
expired icon when selecting an article for a Single Article menu item.
Added a check for the publish_down date against the current date before
assigning the icon class, so expired articles now correctly display the
expired icon.
Fixes #47489
Expired articles show green published icon (icon-publish)
Expired articles show expired icon (icon-expired)
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.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 |
@drmenzelit Thank you for the suggestion. I will check how the expired state is handled in the articles list and see whether the same logic can be reused here for consistency.
@kiruthika-cse-cs My above change suggestions are just for you to see what should be changed on the current code of this PR so you can learn. But what @drmenzelit is still right, please check if you can re-use code from the articles list.
@kiruthika-cse-cs Other question: Looking at your code changes, they look identical with those of the older PR #47491 . What am I missing?
Hi @richard67 ,
Thank you for the detailed feedback.
I will:
$item->state to prevent XSS0000-00-00 00:00:00 check as suggested for MySQL 8 compatibilityAlso, I will review the articles list implementation and try to reuse the existing logic instead of duplicating it.
Regarding the similarity with PR #47491, I will recheck and clarify the difference or update my approach accordingly.
I am still a beginner and learning the Joomla codebase, so your guidance is very helpful for me to improve. Thank you for your patience and support.
Have you checked how it is done in the articles list and f you can re-use the code there?