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

Students can send an assignment without choosing any file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.4
    • Assignment (2.2)
    • None
    • MOODLE_24_STABLE

      Students can send an assignment without choosing any file.

      File: mod/assignment/type/uploadsingle/upload_form.php

      Fix :

      //Below this line :
      $mform->addElement('filepicker', 'assignment_file', get_string('uploadafile'), null, $instance['options']);

      //Add this line
      $mform->addRule('assignment_file', get_string('uploadnofilefound'), 'required', null, 'client');

            damyon Damyon Wiese
            amrigo Angelo Rigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.