Skip to content

[7.0] Changelog: Removing LegacyPropertyManagementTrait#44897

Merged
bembelimen merged 10 commits intojoomla:7.0-devfrom
Hackwar:6.0-changelog
May 6, 2026
Merged

[7.0] Changelog: Removing LegacyPropertyManagementTrait#44897
bembelimen merged 10 commits intojoomla:7.0-devfrom
Hackwar:6.0-changelog

Conversation

@Hackwar
Copy link
Copy Markdown
Member

@Hackwar Hackwar commented Feb 13, 2025

Summary of Changes

The Joomla\CMS\Changelog\Changelog class uses the LegacyPropertyManagementTrait, which is deprecated. The trait is deprecated because it basically disables the whole visibility system of properties in PHP. This PR removes that trait from this class and changes the core code to use the new way this class works.

This is a b/c break, since the properties now have been changed from protected to public (remember that the trait was there to directly circumvent that again.) and of course the trait has been removed.

Testing Instructions

Copy the following XML into an XML file of your choosing: (for example changelog.xml)

<changelogs>
	<changelog>
		<element>pkg_ru-RU</element>
		<type>package</type>
		<version>5.2.2.1</version>
		<security>
			<item>Item A</item>
			<item><![CDATA[<h2>You MUST replace this file</h2>]]></item>
		</security>
		<fix>
			<item>Item A</item>
			<item>Item b</item>
		</fix>
	</changelog>
</changelogs>

Put the file somewhere where you could access it via a URL, for example simply in the root of the site you are testing this on.
Install a random outdated extension, for example a language pack and then go into the database into the #__updates table and edit the changelog column of the installed extension (e.g. the language pack) and insert the URL to the XML file into it.
Go to the update view in the backend and click on the changelog button next to the available update.

Actual result BEFORE applying this Pull Request

You get a view of the changelog.

Expected result AFTER applying this Pull Request

You still get a view of the changelog, but the class behind it has been refactored to not use the outdated code.

Link to documentations

Please select:

@Hackwar Hackwar added the b/c break This item changes the behavior in an incompatible why. HEADS UP label Feb 13, 2025
@Hackwar Hackwar marked this pull request as ready for review February 14, 2025 16:19
@exlemor
Copy link
Copy Markdown

exlemor commented Jun 16, 2025

I have tested this item ✅ successfully on c1f60f1

I have tested this successfully.

NOT sure if this important but during my testing I tried Enabling (and disabling) Log Everything through different testing cycles in the Global Configuration and WHEN it is enabled, the Changelog button does not show because it seems that something removes the data in the Changelogurl column in the __updates table... - Just thought you would want to know in case that wasn't normal.


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

@sdwjoomla
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 2b6b18d

Did not see any changes in the output as expected


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

@Hackwar
Copy link
Copy Markdown
Member Author

Hackwar commented Aug 17, 2025

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Aug 17, 2025
@bembelimen bembelimen added the bug label Aug 20, 2025
@tecpromotion
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on d1d650e


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

@softforge softforge changed the title [6.0] Changelog: Removing LegacyPropertyManagementTrait [6.1] Changelog: Removing LegacyPropertyManagementTrait Nov 10, 2025
@softforge softforge changed the base branch from 6.0-dev to 6.1-dev November 10, 2025 21:14
@softforge
Copy link
Copy Markdown
Contributor

Thank you @Hackwar we have rebased to 6.1 as its B/C

Comment thread administrator/components/com_installer/src/Model/ManageModel.php Outdated
Comment thread administrator/components/com_installer/src/Model/ManageModel.php Outdated
@HLeithner
Copy link
Copy Markdown
Member

Does it make sense to make the properties public writable? waiting for php 8.4 would allow us to use property hooks or use setter/getter?

@richard67
Copy link
Copy Markdown
Member

@HLeithner @tecpromotion @laoneo As there are unresolved review comments, shall I remove RTC?

@Hackwar Hackwar changed the base branch from 6.1-dev to 7.0-dev February 28, 2026 14:13
@Hackwar Hackwar changed the title [6.1] Changelog: Removing LegacyPropertyManagementTrait [7.0] Changelog: Removing LegacyPropertyManagementTrait Feb 28, 2026
@bembelimen bembelimen merged commit 0bbf4d1 into joomla:7.0-dev May 6, 2026
52 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 6, 2026
@bembelimen
Copy link
Copy Markdown
Contributor

Thx

@bembelimen bembelimen added this to the Joomla! 7.0.0 milestone May 6, 2026
@Hackwar Hackwar deleted the 6.0-changelog branch May 6, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

b/c break This item changes the behavior in an incompatible why. HEADS UP Feature PR-7.0-dev Removal Removes functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.