? Pending

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
8 Aug 2022

Pull Request for Issue #38244

Summary of Changes

The new menuitem field cannot use nor has any use for the Default value field. Since there is no switch we can use to set this field a new plugin trigger has been added with the name onCustomFieldsPreprocessForm which can be picked up by the custom fields plugins.

Using this new trigger we can remove the Default value from the form and the mentioned error will not happen.

Testing Instructions

  1. Create a new custom field for Articles of the type List of Menu Items
  2. Set a default value as abc
  3. Save the custom field
  4. Edit or create a new article
  5. The page won't load the article edit form but will show an error on the page.
  6. Apply this pull request
  7. Reload the page or restart from step 4
  8. The page loads as expected and you can edit/create the article

Actual result BEFORE applying this Pull Request

Page crashed with a fatal error

Expected result AFTER applying this Pull Request

The content editing page loads as expected an article can be edited/created.

Documentation Changes Required

Yes, plugin trigger onCustomFieldsPreprocessForm needs to be documented.

avatar roland-d roland-d - open - 8 Aug 2022
avatar roland-d roland-d - change - 8 Aug 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Aug 2022
Category Administration com_fields Front End Plugins
avatar roland-d roland-d - change - 8 Aug 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-08-08 19:13:56
Closed_By roland-d
Labels Added: ?
avatar roland-d roland-d - close - 8 Aug 2022

Add a Comment

Login with GitHub to post a comment