From 7983a7f1192925b7126a1e2e28378f531b087271 Mon Sep 17 00:00:00 2001 From: Juan van den Anker Date: Fri, 21 Apr 2017 11:35:37 +1200 Subject: [PATCH] Enhancement: added an extension point to UserDefinedForm.finished --- code/model/UserDefinedForm.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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' => '', )); }