Pending

User tests: Successful: Unsuccessful:

avatar kiruthika-cse-cs
kiruthika-cse-cs
31 Mar 2026

… selector #47489

Pull Request resolves #47489.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

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

Testing Instructions

  1. Create an article with a publish_down date in the past
  2. Create a new menu item of type Single Article
  3. Click Select Article to open the modal
  4. Find the expired article
  5. It should now show the expired icon instead of published icon

Actual result BEFORE applying this Pull Request

Expired articles show green published icon (icon-publish)

Expected result AFTER applying this Pull Request

Expired articles show expired icon (icon-expired)

Link to documentations

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

Screenshots

Before fix:
issue 2 before

After fix:
issue 2 result

avatar kiruthika-cse-cs kiruthika-cse-cs - open - 31 Mar 2026
avatar kiruthika-cse-cs kiruthika-cse-cs - change - 31 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Mar 2026
Category Administration com_content
avatar drmenzelit
drmenzelit - comment - 31 Mar 2026

Have you checked how it is done in the articles list and f you can re-use the code there?

avatar kiruthika-cse-cs
kiruthika-cse-cs - comment - 31 Mar 2026

@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.

avatar richard67
richard67 - comment - 4 Apr 2026

@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.

avatar richard67
richard67 - comment - 4 Apr 2026

@kiruthika-cse-cs Other question: Looking at your code changes, they look identical with those of the older PR #47491 . What am I missing?

Add a Comment

Login with GitHub to post a comment