Skip to content

onContentPrepareForm event $data is unpopulated #14851

@bassmanpaul

Description

@bassmanpaul

Hi, I'm not sure if this is expected behaviour or not but when saving a module, the $data object in onContentPrepareForm( $form, $data ); is a blank array.

My content plugin needs to add additional fields to the $form based on the type of module which can be found in $data->module (e.g. 'mod_menu'). To do this, the onContentPrepareForm() fires on load and on save where I must bind my fields in both cases.

Unfortunately, the $data is unpopulated on save. Is this intended?

I've found another instance of this cropping up a few years back: https://developer.joomla.org/joomlacode-archive/issue-29145.html but a workaround was suggested rather than the issue being directly addressed/fixed.

Thoughts welcome!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions