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

Editing events results in changing the type of event and removing the Course option

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-72430-master
    • Hide

      Covered by newly created Behat. Manual steps are below

      Steps to test:

      1. Login as admin.
      2. Make sure calendar_adminseesall admin setting is turned off by default.
      3. Make sure the admin user is not enroled to any course. If yes, please unenrol.
      4. Create a new course.
      5. Make sure to unenrol the admin user out of the created course (If you are using Moodle 4.0).
      6. Navigate to the created course and add the Upcoming events blocks.
      7. Click Go to calendar... in the block.
      8. Click on New event button.
      9. Set event type to "Course"
      10. Set the Event title to "Test course event".
      11. Press Save button.
      12. Click on the cog icon next to the created event to edit.
      13. Verify that the "Type of event" is still Course with the the course name selected.
      Show
      Covered by newly created Behat. Manual steps are below Steps to test: Login as admin. Make sure calendar_adminseesall admin setting is turned off by default. Make sure the admin user is not enroled to any course. If yes, please unenrol . Create a new course. Make sure to unenrol the admin user out of the created course (If you are using Moodle 4.0). Navigate to the created course and add the Upcoming events blocks. Click Go to calendar... in the block. Click on New event button. Set event type to "Course" Set the Event title to "Test course event". Press Save button. Click on the cog icon next to the created event to edit. Verify that the "Type of event" is still Course with the the course name selected.
    • 2
    • Team Hedgehog 4.1 sprint 0.1

      When editing a course event the Event Type is changed automatically and can't select Course as Event Type anymore.

      Steps to reproduce the original issue

      1. New steps to replicate

      2. Login as admin.
      3. Make sure calendar_adminseesall admin setting is turned off by default.
      4. Make sure the admin user is not enroled to any course. If yes, please unenrol.
      5. Create a new course.
      6. Make sure to unenrol the admin user out of the created course (If you are using Moodle 4.0).
      7. Navigate to the created course and add the Upcoming events blocks.
      8. Click Go to calendar... in the block.
      9. Click on New event button.
      10. Set the Event title to "Test course event".
      11. Press Save button.
      12. Click on the cog icon next to the created event to edit.
      13. Observe the Type of event field.

      Expected result:

      1. The Type of event field is set to Course.
      2. The course name of the event is also shown.

      Actual result:

      1. The Type of event is set to User.
      2. There is no Course option in the Type of event Combobox.
      3. The course name of the event is not shown.

       

      -{}Original steps to reproduce{}-

      Steps to reproduce:

      1. Logged in with Admin
      2. Go to a course and add the Upcoming events block and then click Go to calendar...
      3. In the upcoming events view, click New Event to create a new event for the course.
      4. Add a title and set a date in the future when creating the new event and save.
      5. In the list, on the page with events, click on the cog icon next to the event we just created for Editing the event.
      6. The Type of event is not Course anymore. The only available options are: User / Category / Site.

      After Saving a new event created when you try to edit it, the Course disappears from the list, and the event won't show up under the course anymore.

      Everything is done with the admin user.

      I have tried a fresh new install of Moodle, the latest build 20210827, same outcome.

        1. MDL-72430_master_1.png
          MDL-72430_master_1.png
          59 kB
        2. MDL-72430_master_2.png
          MDL-72430_master_2.png
          69 kB
        3. MDL-72430_master_3.png
          MDL-72430_master_3.png
          61 kB
        4. MDL-72430_v311_1.png
          MDL-72430_v311_1.png
          80 kB
        5. MDL-72430_v311_2.png
          MDL-72430_v311_2.png
          81 kB
        6. MDL-72430_v311_3.png
          MDL-72430_v311_3.png
          129 kB
        7. MDL-72430_v400_1.png
          MDL-72430_v400_1.png
          59 kB
        8. MDL-72430_v400_2.png
          MDL-72430_v400_2.png
          63 kB
        9. MDL-72430_v400_3.png
          MDL-72430_v400_3.png
          67 kB

            huongn@moodle.com Huong Nguyen
            abozga Alex Bozga
            Stevani Andolo Stevani Andolo
            Simey Lameze Simey Lameze
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 5 hours, 11 minutes
                1w 5h 11m

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