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

In course upload, it is possible to set course visibility to 2 which prompts an error in dashboard for enrolled students

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.7.4, 3.8.1
    • 3.6.7, 3.7.3, 3.8
    • Course
    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-67210-master
    • Hide
      1. Go to the course upload tool.
      2. Upload a file like the attached one having visible set to a value not being 0 or 1.
      3. Click the "Preview" button.
      4. Verify the "Status" column says "Invalid visibility mode given." (Refer the image below, minus "Only 0 and 1 are supported" which has been left away in the meanwhile)
      5. Confirm when you click upload, the results indicate that the course was not uploaded.

      Show
      Go to the course upload tool. Upload a file like the attached one having visible set to a value not being 0 or 1. Click the "Preview" button. Verify the "Status" column says "Invalid visibility mode given." (Refer the image below, minus " Only 0 and 1 are supported " which has been left away in the meanwhile) Confirm when you click upload, the results indicate that the course was not uploaded.

      There's the possibility to set the visibility of a course to 2 when uploading courses.
      This then leads to an error on the dashboard of enrolled students.

      TO REPRODUCE:
      Upload a file like the attached one with content

      shortname,fullname,category,visible
      courserestored,Course restored,1,2

      Enrol a student to that course.

      Then, as that student, access your dashboard.

      WHAT YOU EXPECT:
      There should be no course with visibility 2.

      WHAT ACTUALLY HAPPENS
      A course with visibility 2 is created.

        1. Confirmed fixed.PNG
          Confirmed fixed.PNG
          30 kB
        2. MDL-67210.png
          MDL-67210.png
          480 kB
        3. MDL-67210-after.png
          MDL-67210-after.png
          71 kB
        4. uploadcourse.csv
          0.1 kB

            lucaboesch Luca Bösch
            lucaboesch Luca Bösch
            Peter Dias Peter Dias
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 46 minutes
                46m

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