Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-59073

Workshop: Prevent submission creation without file/content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.6, 3.2.2, 3.3, 3.4
    • Fix Version/s: 3.2.4, 3.3.1
    • Component/s: Workshop
    • Labels:
    • Testing Instructions:
      Hide

      1. Go to a course site as an instructor and add a Workshop activity.
      2. Go to the Workshop activity and switch to the Submission phase.
      4. Attempt a Workshop submission without a content or an attachment.
      5. Verify that you are redirected to the Submission page with a new error message on the form.
      6. Submit with content and/or an attachment and verify the successful submission.

      Show
      1. Go to a course site as an instructor and add a Workshop activity. 2. Go to the Workshop activity and switch to the Submission phase. 4. Attempt a Workshop submission without a content or an attachment. 5. Verify that you are redirected to the Submission page with a new error message on the form. 6. Submit with content and/or an attachment and verify the successful submission.
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-59073_workshop_prevent_submission_without_content_or_file

      Description

      It turns out that you can create a submission in the Workshop without uploading a file or entering any text in the Submission content box. The only Required field on the submission page is the submission title.

      The submission should not be created unless there is text in the submission content box or a file is uploaded with a warning message if a user to prompt the user if she/he submits without text or file upload.

      We have worked on a patch that we are contributing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rex Rex Lorenzo
              Reporter:
              rex Rex Lorenzo
              Peer reviewer:
              David Mudrák (@mudrd8mz)
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              John Okely
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Jul/17