Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Fixing 500 error on GF Form Submission #606

Merged
merged 6 commits into from
Aug 31, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixing 500 error on GF Form Submission
  • Loading branch information
sloyer committed Aug 25, 2021
commit 3e7823401980db3bcdbda5e03573512aab3b5479
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ export default function processGfFieldValues(entryData, fieldData) {
})
break

case 'EmailField':
// TODO: As of WP GraphQL Gravity Forms v.0.4.1, this is accurate, but it appears it may be changing to a nested version in the next release: fieldValue.emailValues = { value, confirmationValue }.
fieldValue.value = entryData[fieldName]
break
case 'EmailField':
fieldValue.emailValues = {
value: entryData[fieldName],
confirmationValue: entryData[fieldName]
}

case 'FileUploadField':
fieldValue.fileUploadValues = entryData[fieldName]
Expand Down