RTC PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
28 Feb 2025

Pull Request for Issue # .

Summary of Changes

In some of our controller classes, we have this line of code $recordId = (int) isset($data[$key]) ? $data[$key] : 0; . It is clearly we want to have int casting applied to $data[$key]. However, with the current code, int casting is actually being applied to isset($data[$key]) and it is not right. This PR fixes that wrong logic.

Testing Instructions

The change is the same for all controllers, so we will just need to test one

  1. Use Joomla 5.3
  2. Try to edit a banner, save it and make sure it is still working.

Actual result BEFORE applying this Pull Request

Works, but int casting is not applied to $data[$key] as expected

Expected result AFTER applying this Pull Request

Works, and int casting is applied properly to $data[$key] as expected

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

avatar joomdonation joomdonation - open - 28 Feb 2025
avatar joomdonation joomdonation - change - 28 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Feb 2025
Category Administration com_banners com_categories com_contact com_content com_fields com_modules com_newsfeeds Front End
avatar QuyTon QuyTon - test_item - 28 Feb 2025 - Tested successfully
avatar QuyTon
QuyTon - comment - 28 Feb 2025

I have tested this item ✅ successfully on 0fbf20c


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

avatar joomdonation joomdonation - change - 28 Feb 2025
Labels Added: PR-5.3-dev
avatar richard67
richard67 - comment - 28 Feb 2025

@joomdonation You should restore @QuyTon 's test result in the issue tracker because it got lost with the branch update. You can use the "Alter test" button for that.

avatar joomdonation joomdonation - alter_testresult - 28 Feb 2025 - QuyTon: Tested successfully
avatar joomdonation
joomdonation - comment - 28 Feb 2025

Thanks @richard67. I had to don that to trigger CI re-run. I now altered test result from @QuyTon

avatar richard67 richard67 - test_item - 28 Feb 2025 - Tested successfully
avatar richard67
richard67 - comment - 28 Feb 2025

I have tested this item ✅ successfully on c5277db


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

avatar richard67 richard67 - change - 28 Feb 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 28 Feb 2025

RTC


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

avatar QuyTon QuyTon - change - 28 Feb 2025
Labels Added: RTC
avatar rdeutz rdeutz - change - 28 Feb 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-02-28 17:24:05
Closed_By rdeutz
avatar rdeutz rdeutz - close - 28 Feb 2025
avatar rdeutz rdeutz - merge - 28 Feb 2025

Add a Comment

Login with GitHub to post a comment