RTC bug PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar sousa9g
sousa9g
29 May 2024

Summary of Changes

Joomla 5.1 added a new method to cache the form field layout data (collectLayoutData()). While it is great for performance, it is now impossible to reset the cached layout data.

In the FormField setup(). The input and labels are cleared:

$this->input = null;
$this->label = null;

However with the introductions of memory caching layout data, those lines don't work anymore, as the input is always rendered using the cached layout data.

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

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 sousa9g sousa9g - open - 29 May 2024
avatar sousa9g sousa9g - change - 29 May 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2024
Category Libraries
avatar Fedik Fedik - test_item - 29 May 2024 - Tested successfully
avatar Fedik
Fedik - comment - 29 May 2024

I have tested this item ✅ successfully on fd1f6c5

On review. It doing the same as $this->input = null; $this->label = null;


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

avatar Fedik Fedik - change - 29 May 2024
Title
Reset the cached layout data during FormField setup()
[5.1] Reset the cached layout data during FormField setup()
avatar Fedik Fedik - edited - 29 May 2024
avatar viocassel viocassel - test_item - 29 May 2024 - Tested successfully
avatar viocassel
viocassel - comment - 29 May 2024

I have tested this item ✅ successfully on fd1f6c5


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

avatar Quy Quy - change - 29 May 2024
Status Pending Ready to Commit
Labels Added: bug PR-5.1-dev
avatar Quy
Quy - comment - 29 May 2024

RTC


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

avatar LadySolveig LadySolveig - change - 3 Jul 2024
Labels Added: RTC
avatar LadySolveig LadySolveig - close - 3 Jul 2024
avatar LadySolveig LadySolveig - merge - 3 Jul 2024
avatar LadySolveig LadySolveig - change - 3 Jul 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-07-03 14:08:38
Closed_By LadySolveig
avatar LadySolveig
LadySolveig - comment - 3 Jul 2024

Thank you @sousa9g ? and also for review and testing @Fedik and @viocassel ?

Add a Comment

Login with GitHub to post a comment