RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar krishnagandhicode
krishnagandhicode
21 Feb 2026

Pull Request resolves #46885

  • 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

fixes the undefined array key warnings for "value" and "from_stage_id" that show up when a usr is denied Execute Transition permissions in workflows. The code was assuming these keys always exist, but they are missing for restricted users. I added fallback checks (?? 0) in Htmlview.php and Contenthelper.php to stop the errorrs.

Testing Instructions

  1. Install Blog Sample Data
  2. allow workflows (by content -> article -> options -> intigration -> enable workflows)
  3. now content -> workflow -> basic-workflow -> pemissions -> administrator -> Execute Transition : denied.
Screenshot 2026-03-11 005018 4. create a user with admin only acces.(if not already) 5. login as admin 6. go to content -> articles

Create Admin user with just administrator group
Set the new workflow for category "Uncategorised".
Login as admin
Open articles

Before applying patch :
image

20260224-0926-49.7968238.mp4

After Applying Patch:
no error messages.

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

avatar krishnagandhicode krishnagandhicode - open - 21 Feb 2026
avatar krishnagandhicode krishnagandhicode - change - 21 Feb 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Feb 2026
Category Administration com_content
avatar krishnagandhicode krishnagandhicode - change - 21 Feb 2026
Title
[5.4] fix undefined array key warnings in workflo permissionns
[5.4] fix undefined array key warnings in workflow permissionns
avatar krishnagandhicode krishnagandhicode - edited - 21 Feb 2026
avatar krishnagandhicode
krishnagandhicode - comment - 23 Feb 2026

Why is it necessary to to remove the (int) in HtmlView.php The (int) often prevents constructs like "0; ..bad code ...', which may not be the case here

actually I moved the casting up to line 211:
$transitionValue = (int) ($transition['value'] ?? 0);

maybe you missed it in the diff?

avatar ThomasFinnern
ThomasFinnern - comment - 23 Feb 2026

Yes i missed it, only was locking for code as such , sorry. Will test it

avatar krishnagandhicode krishnagandhicode - change - 4 Mar 2026
The description was changed
avatar krishnagandhicode krishnagandhicode - edited - 4 Mar 2026
avatar krishnagandhicode krishnagandhicode - change - 4 Mar 2026
The description was changed
avatar krishnagandhicode krishnagandhicode - edited - 4 Mar 2026
avatar krishnagandhicode krishnagandhicode - change - 4 Mar 2026
The description was changed
avatar krishnagandhicode krishnagandhicode - edited - 4 Mar 2026
avatar ThomasFinnern ThomasFinnern - test_item - 6 Mar 2026 - Tested successfully
avatar ThomasFinnern
ThomasFinnern - comment - 6 Mar 2026

I have tested this item ✅ successfully on c0cb616


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

avatar krishnagandhicode krishnagandhicode - change - 10 Mar 2026
The description was changed
avatar krishnagandhicode krishnagandhicode - edited - 10 Mar 2026
avatar krishnagandhicode krishnagandhicode - change - 10 Mar 2026
The description was changed
avatar krishnagandhicode krishnagandhicode - edited - 10 Mar 2026
avatar exlemor exlemor - test_item - 11 Mar 2026 - Tested successfully
avatar exlemor
exlemor - comment - 11 Mar 2026

I have tested this item ✅ successfully on c0cb616

I was able to successfully test this @krishnagandhicode - Thanks!


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

avatar muhme muhme - change - 11 Mar 2026
Labels Added: bug PR-5.4-dev
avatar muhme muhme - alter_testresult - 11 Mar 2026 - ThomasFinnern: Tested successfully
avatar muhme muhme - alter_testresult - 11 Mar 2026 - exlemor: Tested successfully
avatar richard67 richard67 - change - 11 Mar 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 11 Mar 2026

RTC


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

avatar muhme
muhme - comment - 11 Mar 2026

✅ Final test before merge using JBT

  • Seen error before
  • Applied PR with Patch Tester
    • Error messages are gone
    • Still no direct workflow stage changes for the disabled workflow
    • Direct changes to the workflow stage continue to work for other activated workflows
avatar muhme
muhme - comment - 11 Mar 2026

Thank you @krishnagandhicode for your next contribution. Thank you @ThomasFinnern and @exlemor for testing.

avatar muhme muhme - change - 11 Mar 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-03-11 07:49:03
Closed_By muhme
Labels Added: RTC
avatar muhme muhme - close - 11 Mar 2026
avatar muhme muhme - merge - 11 Mar 2026

Add a Comment

Login with GitHub to post a comment