From 66ab7e571b80f3db85e0476ddd25d9fa4fa79334 Mon Sep 17 00:00:00 2001 From: Mark Noble Date: Wed, 17 Jul 2024 16:50:16 -0600 Subject: [PATCH] Fix error that occurred while submitting custom forms --- code/web/release_notes/24.07.01.MD | 7 +++++++ code/web/services/WebBuilder/SubmitForm.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 code/web/release_notes/24.07.01.MD diff --git a/code/web/release_notes/24.07.01.MD b/code/web/release_notes/24.07.01.MD new file mode 100644 index 0000000000..3ce6b532de --- /dev/null +++ b/code/web/release_notes/24.07.01.MD @@ -0,0 +1,7 @@ +## Aspen Discovery Updates +### Other Updates +- Fix error that occurred while submitting custom forms. (*MDN*) + +## This release includes code contributions from +- ByWater Solutions + - Mark Noble (MDN) diff --git a/code/web/services/WebBuilder/SubmitForm.php b/code/web/services/WebBuilder/SubmitForm.php index 23ac9bfef4..2a0f91eca9 100644 --- a/code/web/services/WebBuilder/SubmitForm.php +++ b/code/web/services/WebBuilder/SubmitForm.php @@ -51,7 +51,7 @@ function launch() { $structure = $this->form->getFormStructure(); require_once ROOT_DIR . '/sys/DB/UnsavedDataObject.php'; $serializedData = new UnsavedDataObject(); - DataObjectUtil::updateFromUI($serializedData, $structure); + DataObjectUtil::updateFromUI($serializedData, $structure, null); //Convert the form values to JSON if ($this->form->includeIntroductoryTextInEmail) {