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

Group field doesn't show the values when I select a Course and Type of Event Group in Import Calendar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.3, 3.6
    • Fix Version/s: 3.4.7, 3.5.4
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      Get a subscription link

      1. Go to moodle.org by following link:
        https://moodle.org/calendar/export.php
      2. Select:
        • Events to export: All events
        • Time period: Recent and next 60 days
      3. Click on Get calendar URL
      4. Take note of the calendar URL, we'll use this later.

      Setup

      1. Log in as admin.
      2. Create (or use existing) 3 courses, C1, C2 and C3
      3. Enrol user t1 as an editing teacher to these courses.
      4. Enroll two students s1 and s2 in all of the courses.
      5. Enroll a third student s3 in C2 and C3.
      6. Create 2 groups g11, g12 for C1 and make t1 a member of both groups.
      7. Add s1 to g11.
      8. Create 2 groups g21, g22 for C2 and make t1 a member of both groups.
      9. Add s2 to g22.
      10. Go to the calendar
      11. Click the button Manage subscriptions
      Initial display
      1. Login as the teacher
      2. On the import calendar form, set the event type field to Group
      3. Confirm that a Course autocomplete and a Group select box is shown.
      4. Confirm that a Course autocomplete element only contains C1 and C2.
      5. Set the course field to C1.
      6. Confirm that only the groups g11 and g12 are shown on the Group select box.
      7. Set the course field to C2.
      8. Confirm that only the groups g21 and g22 are shown on the Group select box.
      Data validation
      1. Continuing from the previous section, set the Group select box to g22.
      2. Without setting the value for hte calendar name and url, click Add.
      3. Confirm that you get data validation errors for the calendar name and url fields.
      4. Confirm that C2 is still selected.
      5. Confirm that g22 is still selected.
      Adding a subscription.
      1. Continuing from the previous section, set the Calendar name field to C2G22.
      2. Enter the calendar URL from moodle.org into the Calendar URL field.
      3. Click Add.
      4. Confirm that you were able to successfully import the calendar events.
      5. Open an incognito browser window and log in as s1.
      6. Go to the calendar.
      7. Confirm that you don't see any events.
      8. Log out (or open another browser/browser profile) and log in as s2.
      9. Go to the calendar.
      10. Confirm that you see the events that were imported by the C2G22 calendar subscription.
      Regression tests
      Updating a subscription
      1. Click on Update for the C2G22 subscription.
      2. Confirm that the update completes successfully and that you don't get any error messages.
      Removing a subscription.
      1. Click on Remove for the C2G22 submission.
      2. Confirm that the subscription is removed.
      3. On s2's browser window, reload the calendar page.
      4. Confrim that the events have been deleted as well.
      Importing for other event types.
      1. Import the calendar from moodle.org again.
      2. This time, set the event type to Course.
      3. Select C1 for the Course autocomplete field.
      4. Click Add.
      5. On s2's browser window, refresh the calendar.
      6. Confirm that you see the course events that were imported under C1.
      7. On another broswer session, log in as s3.
      8. Go to the calendar.
      9. Confirm that you don't see any course events.
      Show
      Get a subscription link Go to moodle.org by following link: https://moodle.org/calendar/export.php Select: Events to export : All events Time period : Recent and next 60 days Click on Get calendar URL Take note of the calendar URL, we'll use this later. Setup Log in as admin. Create (or use existing) 3 courses, C1, C2 and C3 Enrol user t1 as an editing teacher to these courses. Enroll two students s1 and s2 in all of the courses. Enroll a third student s3 in C2 and C3. Create 2 groups g11, g12 for C1 and make t1 a member of both groups. Add s1 to g11. Create 2 groups g21, g22 for C2 and make t1 a member of both groups. Add s2 to g22. Go to the calendar Click the button Manage subscriptions Initial display Login as the teacher On the import calendar form, set the event type field to Group Confirm that a Course autocomplete and a Group select box is shown. Confirm that a Course autocomplete element only contains C1 and C2. Set the course field to C1. Confirm that only the groups g11 and g12 are shown on the Group select box. Set the course field to C2. Confirm that only the groups g21 and g22 are shown on the Group select box. Data validation Continuing from the previous section, set the Group select box to g22. Without setting the value for hte calendar name and url, click Add. Confirm that you get data validation errors for the calendar name and url fields. Confirm that C2 is still selected. Confirm that g22 is still selected. Adding a subscription. Continuing from the previous section, set the Calendar name field to C2G22. Enter the calendar URL from moodle.org into the Calendar URL field. Click Add. Confirm that you were able to successfully import the calendar events. Open an incognito browser window and log in as s1. Go to the calendar. Confirm that you don't see any events. Log out (or open another browser/browser profile) and log in as s2. Go to the calendar. Confirm that you see the events that were imported by the C2G22 calendar subscription. Regression tests Updating a subscription Click on Update for the C2G22 subscription. Confirm that the update completes successfully and that you don't get any error messages. Removing a subscription. Click on Remove for the C2G22 submission. Confirm that the subscription is removed. On s2's browser window, reload the calendar page. Confrim that the events have been deleted as well. Importing for other event types. Import the calendar from moodle.org again. This time, set the event type to Course. Select C1 for the Course autocomplete field. Click Add. On s2's browser window, refresh the calendar. Confirm that you see the course events that were imported under C1. On another broswer session, log in as s3. Go to the calendar. Confirm that you don't see any course events.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-64214-master

      Description

      Steps to reproduce:

      1. Create a course in which at least two groups are set up.
      2. Log in to Moodle as a teacher and access the course calendar (via the calendar block or the upcoming events block).
      2. Click the button 'Manage subscriptions'.
      3. Try importing a calendar by filling in a name e.g. 'Course calendar', calendar URL (for instance https://yoursite/calendar/export.php) and selecting  'Group events'.
      4. The 'Course field' show courses with groups where you are enrolled (in this case, this one). Pick up.

      Expected result:

      • The 'Group field' option shows two groups.

      Current result:

      • None of the 'Group field' is shown.

       

        Attachments

        1. screenshot-1.png
          94 kB
          Jun Pataleta
        2. screenshot-2.png
          53 kB
          Jun Pataleta
        3. Screenshot 2018-11-26 at 10.19.46.png
          28 kB
          Carlos Escobedo

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/19