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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.7, 3.7.3, 3.8
    • Fix Version/s: 3.7.4, 3.8.1
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull 3.8 Branch:
    • Pull Master Branch:
      MDL-67210-master

      Description

      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.

        Attachments

        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

          Activity

            People

            Assignee:
            lucaboesch Luca Bösch
            Reporter:
            lucaboesch Luca Bösch
            Peer reviewer:
            Peter Dias
            Integrator:
            Sara Arjona (@sarjona)
            Tester:
            Gladys Basiana
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Jan/20

                Time Tracking

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