Back to: Bugs/Defect Tracker
Description:
This issue affects only clients that have enabled copy submission and are expecting that the event subscription is going to call out according to expected behaviour on submission events which is why the priority is LOW.
(note the default name for the submit button is submit - if the api property name changes it may cause issues with the event subscription -this is an issue that is being looked at)
Copy a submission that was submitted ( you need to have the allow copy submission in form settings and the allow edit in form settings)
2. Save as a draft
Notice that the status is not reset and mirrors the coppied submission ( the expected behavior is that the state would be revising and that the submit boolean would be false):
In the code the only place I see the copy being done is in:
C:\Economy\UnityChefs\app\frontend\src\components\forms\submission\UserDuplicateSubmission.vue
After line 31 I would override the state = “submitted” and the submit = true
To be state = “revising“ and submit = false<script> import { mapActions } from 'pinia'; import FormViewer from '~/components/designer/FormViewer.vue'; import { useFormStore } from '~/store/form'; export default { components: { FormViewer, }, props: { submissionId: { type: String, required: true, }, formId: { type: String, required: true, }, readOnly: { type: Boolean, default: true }, saved: { type: Boolean, default: false, }, }, data() { return { loading: true, }; }, async mounted() { await this.fetchSubmission({ submissionId: this.submissionId }); this.loading = false; }, methods: { ...mapActions(useFormStore, ['fetchSubmission']), }, }; </script>