/
Expected Behaviour - Copy Submission should override submission state

Expected Behaviour - Copy Submission should override submission state

Back to: CHEFS Bugs/Defect Tracker

Priority

Status

Team

Priority

Status

Team

Low

Open

Unity -JEDI

Legend

Low medium High

Open in progress done

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)

 

  1. Copy a submission that was submitted ( you need to have the allow copy submission in form settings and the allow edit in form settings)

    image-20240304-190652.png

    2. Save as a draft

image-20240304-190527.png
  1. 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):
    (New March 8 - submit is actually the name of the submit button property api - not sure how you would detect this and override it)


    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>



Related content

Error copying previous submission
Error copying previous submission
More like this
While editing an unpublished form in CHEFS the save button stops working
While editing an unpublished form in CHEFS the save button stops working
More like this
CHEFS BUG - Copying a previous submission misses fields.
CHEFS BUG - Copying a previous submission misses fields.
More like this
The "Submitted" and "Modified" date/time stamps are switched for applications that were saved as a draft before being submitted
The "Submitted" and "Modified" date/time stamps are switched for applications that were saved as a draft before being submitted
More like this
Invalid data remains in the component without any error message after saving and then reopening a draft
Invalid data remains in the component without any error message after saving and then reopening a draft
More like this
Team Management of draft/submissions does not carry over when submissions are copied
Team Management of draft/submissions does not carry over when submissions are copied
More like this