31c1b database submission action update not working (#51)
* Editable Submissions * Database submission action-Update Not Working Co-authored-by: JhumanJ <julien@nahum.net>
This commit is contained in:
parent
1d3541f785
commit
a0750573ff
|
@ -112,6 +112,7 @@ class PublicFormController extends Controller
|
|||
}
|
||||
|
||||
$submission = FormSubmission::findOrFail($submissionId);
|
||||
|
||||
if ($submission->form_id != $form->id) {
|
||||
return $this->error([
|
||||
'message' => 'Not allowed.',
|
||||
|
|
|
@ -308,7 +308,6 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.isPublicFormPage) {
|
||||
let pendingData
|
||||
try {
|
||||
|
|
|
@ -180,11 +180,10 @@ export default {
|
|||
filterableFields() {
|
||||
if (this.submissionOptions.databaseAction !== 'update') return []
|
||||
return this.form.properties.filter((field) => {
|
||||
return !field.hidden && window.config.notion.database_filterable_types.includes(field.type)
|
||||
return !field.hidden && !['files','signature','multi_select'].includes(field.type)
|
||||
}).map((field) => {
|
||||
const fieldName = (field.name !== field.notion_name) ? (field.name + ' (' + field.notion_name + ')') : field.name
|
||||
return {
|
||||
name: fieldName,
|
||||
name: field.name,
|
||||
value: field.id
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue