PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar TLWebdesign
TLWebdesign
30 Sep 2025

This PR fixes the issue of the deprecated warning by not removing the default_field but setting it to hidden thru the form params instead.

Pull Request for Issue #46187 .

Summary of Changes

Removed default_value from the remove fields logic in the prepareForm method.
Added the default_value as a hidden field through the note.xml params file.

Testing Instructions

  • Turn on error reporting to maximum.
  • Create a new note field.
  • Open an article that displays this field

Actual result BEFORE applying this Pull Request

Deprecated: DOMCdataSection::__construct(): Passing null to parameter #1 ($data) of type string is deprecated in \administrator\components\com_fields\src\Plugin\FieldsPlugin.php on line 277

Expected result AFTER applying this Pull Request

No Deprecated warnings and default value field is still not visible.

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 TLWebdesign TLWebdesign - open - 30 Sep 2025
avatar TLWebdesign TLWebdesign - change - 30 Sep 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2025
Category Front End Plugins
avatar tecpromotion tecpromotion - change - 30 Sep 2025
Title
Fix note custom field deprecated warning
[6.0] Fix note custom field deprecated warning
avatar tecpromotion tecpromotion - edited - 30 Sep 2025
avatar tecpromotion tecpromotion - change - 30 Sep 2025
The description was changed
avatar tecpromotion tecpromotion - edited - 30 Sep 2025
avatar RickR2H RickR2H - test_item - 4 Oct 2025 - Tested successfully
avatar RickR2H
RickR2H - comment - 4 Oct 2025

I have tested this item ✅ successfully on f88b627

Works! Hiding the default value field is probably the best option to keep things from breaking.


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

avatar tecpromotion tecpromotion - test_item - 4 Oct 2025 - Tested successfully
avatar tecpromotion
tecpromotion - comment - 4 Oct 2025

I have tested this item ✅ successfully on f88b627


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

avatar tecpromotion tecpromotion - change - 4 Oct 2025
Status Pending Ready to Commit
Labels Added: PR-6.0-dev
avatar tecpromotion
tecpromotion - comment - 4 Oct 2025

RTC


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

Add a Comment

Login with GitHub to post a comment