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:
Marco Hermo 2022-01-14 11:08:22 +13:00 committed by GitHub
parent ddea8104a8
commit c762835d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,7 +447,7 @@ JS
}
}
$submittedForm->extend('updateAfterProcess');
$submittedForm->extend('updateAfterProcess', $emailData, $attachments);
$session = $this->getRequest()->getSession();
$session->clear("FormInfo.{$form->FormName()}.errors");