mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
API Additional data passed to updateAfterProcess hook (#1130)
Passing $emailData and $attachments array to the existing hook, updateAfterProcess In this case it will give more flexibility for the extension to do additional cleanup process after the emails has been sent.
This commit is contained in:
parent
ddea8104a8
commit
c762835d4f
@ -447,7 +447,7 @@ JS
|
||||
}
|
||||
}
|
||||
|
||||
$submittedForm->extend('updateAfterProcess');
|
||||
$submittedForm->extend('updateAfterProcess', $emailData, $attachments);
|
||||
|
||||
$session = $this->getRequest()->getSession();
|
||||
$session->clear("FormInfo.{$form->FormName()}.errors");
|
||||
|
Loading…
Reference in New Issue
Block a user