-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
onContentPrepareForm event $data is unpopulated #14851
Copy link
Copy link
Closed
Labels
Description
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status