diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index 94ad55e..2663abb 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -885,11 +885,15 @@ JS Session::clear('FormProcessed'); } + $data = array( + 'Submission' => $submission, + 'Link' => $referrer + ); + + $this->extend('updateReceivedFormSubmissionData', $data); + return $this->customise(array( - 'Content' => $this->customise(array( - 'Submission' => $submission, - 'Link' => $referrer - ))->renderWith('ReceivedFormSubmission'), + 'Content' => $this->customise($data)->renderWith('ReceivedFormSubmission'), 'Form' => '', )); }