Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Back to: Bugs/Defect Tracker

Page Properties

Priority

Status

Team

Status
colourBlue
titleLow

Status
colourBlue
titleOpen

Unity -JEDI

Legend

Status
colourBlue
titleLow
Status
colourYellow
titlemedium
Status
colourRed
titleHigh

Status
colourBlue
titleOpen
Status
colourYellow
titlein progress
Status
colourGreen
titledone

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

...

  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)

    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

    Code Block
    <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>