Merge pull request #576 from jvdanker/feature/PR574

Enhancement: added an extension point to UserDefinedForm.finished
This commit is contained in:
Robbie Averill 2017-04-24 09:00:07 +12:00 committed by GitHub
commit 916dbf42c7

View File

@ -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' => '',
));
}