Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Back to: Bugs/Defect Tracker

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):

    image-20240304-190854.png


    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>
    


  • No labels