RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar rish106-hub
rish106-hub
15 Jun 2026

Pull Request resolves #47710.

  • 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

PR #47263 fixed readmore showing when there is nothing to read, but introduced a regression: when introtext_limit is used to truncate text (instead of a readmore marker), $item->fulltext is empty so the readmore button never renders even though the article IS truncated and there IS more to read.

Fix tracks whether truncation actually occurred and uses that flag alongside $item->fulltext to decide readmore visibility.

Testing Instructions

  1. Create an article with only introtext (no readmore marker), body > 100 chars
  2. Create a mod_articles module: set Introtext Limit = 50, Show Read More = Yes
  3. View frontend — readmore button should appear
  4. Shorten article text below limit — readmore button should disappear
  5. Article with readmore marker — unaffected, still shows readmore

Actual result BEFORE applying this PR

No readmore button shown even though text is truncated by introtext_limit

Expected result AFTER applying this PR

Readmore button appears when introtext is truncated. Does not appear when text fits within limit. Articles using readmore marker unaffected.

  • No documentation changes for guide.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar rish106-hub rish106-hub - open - 15 Jun 2026
avatar rish106-hub rish106-hub - change - 15 Jun 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2026
Category Modules Front End
avatar richard67
richard67 - comment - 15 Jun 2026

There is already a PR for the same issue: #47713 .

avatar rish106-hub
rish106-hub - comment - 16 Jun 2026

@richard67 Thanks for flagging #47713.

Our approach differs in a key way: #47713 has an open review comment from @QuyTon noting the fix executes even when show_introtext is disabled.

In this PR, $item->introTextTruncated is initialized to false in the helper and only set to true inside the if ($show_introtext) block — so the template condition is always safe when intro text display is off. This addresses QuyTon's concern.

Happy to close if maintainers prefer to update #47713 instead.

avatar krishnagandhicode krishnagandhicode - test_item - 16 Jun 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 16 Jun 2026

I have tested this item ✅ successfully on 5621400

Thanks.


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

avatar krishnagandhicode
krishnagandhicode - comment - 16 Jun 2026

I have tested this item ✅ successfully on 5621400

Thanks.


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

avatar rish106-hub
rish106-hub - comment - 16 Jun 2026

@richard67 — adding to my earlier response:

@krishnagandhicode has independently tested and confirmed this PR works correctly on 5621400.

To summarise why this PR addresses the regression more completely than #47713:

  • #47713 has an open review comment from @QuyTon: the fix runs even when show_introtext is disabled
  • In this PR, $item->introTextTruncated is initialised to false before the if ($show_introtext) block and is only set true inside it — so when intro text display is off, the flag stays false and the readmore condition is unaffected

With a passing test and CI green, happy to have this reviewed for merge or to close in favour of a corrected #47713 — whichever the team prefers.

avatar rish106-hub
rish106-hub - comment - 16 Jun 2026

@richard67 — adding to my earlier response:

@krishnagandhicode has independently tested and confirmed this PR works correctly on 5621400.

To summarise why this PR addresses the regression more completely than #47713:

  • #47713 has an open review comment from @QuyTon: the fix runs even when show_introtext is disabled
  • In this PR, $item->introTextTruncated is initialised to false before the if ($show_introtext) block and is only set true inside it - so when intro text display is off, the flag stays false and the readmore condition is unaffected

With a passing test and CI green, happy to have this reviewed for merge or to close in favour of a corrected #47713 - whichever the team prefers.

avatar alikon alikon - test_item - 23 Jun 2026 - Tested successfully
avatar alikon
alikon - comment - 23 Jun 2026

I have tested this item ✅ successfully on 5621400


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

avatar alikon
alikon - comment - 23 Jun 2026

I have tested this item ✅ successfully on 5621400


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

avatar alikon alikon - change - 23 Jun 2026
The description was changed
Status Pending Ready to Commit
avatar alikon
alikon - comment - 23 Jun 2026

RTC


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

avatar alikon
alikon - comment - 23 Jun 2026

RTC


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

avatar muhme muhme - change - 23 Jun 2026
Status Ready to Commit Pending
avatar muhme
muhme - comment - 23 Jun 2026

Back to pending as updates are requested


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

avatar muhme muhme - edited - 23 Jun 2026
avatar muhme
muhme - comment - 23 Jun 2026

Back to pending as updates are requested


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

avatar rish106-hub rish106-hub - change - 23 Jun 2026
Labels Added: Updates Requested PR-5.4-dev
avatar rish106-hub
rish106-hub - comment - 23 Jun 2026

Addressed both review suggestions from @QuyTon:

  • ArticlesHelper.php: Removed redundant parentheses around the boolean comparison -
    $item->introTextTruncated = $truncated !== $item->displayIntrotext;
  • default_items.php: Replaced !empty($item->introTextTruncated) with $item->introTextTruncated directly, since the property is already a boolean and !empty() is unnecessary here.
avatar richard67
richard67 - comment - 23 Jun 2026

@krishnagandhicode @alikon Could one of you do a quick retest if it still works with the latest changes? I would assume yes by review, but to play safe, one retest would be nice and should be sufficient for adding back RTC.

avatar richard67 richard67 - change - 23 Jun 2026
Labels Added: bug
Removed: Updates Requested
avatar muhme
muhme - comment - 18 Aug 2026

Could one of you do a quick retest if it still works with the latest changes? I would assume yes by review, but to play safe, one retest would be nice and should be sufficient for adding back RTC.

@krishnagandhicode @alikon Would it be possible the next days? It would be great, thx in advance.

avatar rbuelund rbuelund - test_item - 22 Aug 2026 - Tested successfully
avatar rbuelund
rbuelund - comment - 22 Aug 2026

I have tested this item ✅ successfully on ffab7d4


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

avatar rbuelund
rbuelund - comment - 22 Aug 2026

I have tested this item ✅ successfully on ffab7d4


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

avatar krishnagandhicode krishnagandhicode - test_item - 22 Aug 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 22 Aug 2026

I have tested this item ✅ successfully on ffab7d4


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

avatar krishnagandhicode
krishnagandhicode - comment - 22 Aug 2026

I have tested this item ✅ successfully on ffab7d4


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

avatar alikon alikon - change - 22 Aug 2026
Status Pending Ready to Commit
avatar alikon
alikon - comment - 22 Aug 2026

RTC


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

avatar alikon
alikon - comment - 22 Aug 2026

RTC


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

avatar rish106-hub rish106-hub - change - 22 Aug 2026
Labels Added: RTC
avatar richard67
richard67 - comment - 22 Aug 2026

@rish106-hub Why do you trigger a branch update? This PR is RTC (ready to commit) as it has 2 successful human tests, so nothing to do for you anymore. Release managers will do a final review and merge it when ok. There is no need to keep our CI infrastructure busy with unnecessary branch updates.

avatar rish106-hub
rish106-hub - comment - 25 Aug 2026

@richard67 Apologies , that was a habit of keeping the branch in sync with 5.4-dev, not a deliberate change. I didn't realize it burns CI time and moves the head away from the SHA the testers signed off on.

Understood , no further branch updates from me on this one. I'll leave it with the release managers, and I'll only push if a maintainer asks for a change.

avatar muhme
muhme - comment - 27 Aug 2026

✅ Final test before merge with JBT

  • Seen missing 'Read more' button for text longer than char limit before PR
  • Applied PR with Patch Tester
    • 'Read more' button for text longer than the specified limit is shown and working
    • 'Read more' button for article with 'Read more' marker line is shown and working
    • No 'Read more' button for article whose text is shorter than the specified limit (as fixed in the previous PR)
    • No 'Read more' buttons if Articles module Display Options are set to "Read More" Link: Hide
avatar muhme muhme - change - 27 Aug 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-08-27 17:20:29
Closed_By muhme
avatar muhme muhme - close - 27 Aug 2026
avatar muhme muhme - merge - 27 Aug 2026
avatar muhme
muhme - comment - 27 Aug 2026

Thank you very much @rish106-hub for your first time contribution. Thank you @QuyTon for your support. Thanks to @krishnagandhicode, @alikon and @rbuelund for testing.

Add a Comment

Login with GitHub to post a comment