Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Reassign value of the field
I need to reassign the value of field 'Body' in the plug-in method
'DiscussionModel_BeforeSaveDiscussion_Handler($Sender)'.
How can I do this?
'DiscussionModel_BeforeSaveDiscussion_Handler($Sender)'.
How can I do this?
Tagged:
0
Comments
ArrayValue('Body',$Sender->EventArguments['Fields'], 0);
should give you the Body. If not, try AfterSaveDiscussion./cd
$Sender->EventArguments['FormPostValues']['Body'] = 'Default';