Skip to content

Commit

Permalink
Fix error that occurred while submitting custom forms
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnoble73 committed Jul 17, 2024
1 parent ec76783 commit 66ab7e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions code/web/release_notes/24.07.01.MD
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion code/web/services/WebBuilder/SubmitForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 66ab7e5

Please sign in to comment.