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

Events Available for group members only not exported to Outlook

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.4.5
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Database:
      Any
    • Testing Instructions:
      Hide

      0. check enablegroupmembersonly in configuration
      1. Create an activity (Assignment for example) and set a Due date (tomorrow for example)
      2. In "Common module settings" click "show advanced"
      3. Select a "grouping" and check "Available for group members only"
      4. Go to calendar as a member of the grouping selected in 3 and click "Export Calendar"
      5. Click "Export".
      -----> The event created in 1 is included in the ics file (expected behaviour)
      6. Click "Get calendar URL" and import the Internet Calendar in, for example, Outlook.
      -----> The event created in 1 is NOT included in the imported calendar. (unexpected behaviour)

      Show
      0. check enablegroupmembersonly in configuration 1. Create an activity (Assignment for example) and set a Due date (tomorrow for example) 2. In "Common module settings" click "show advanced" 3. Select a "grouping" and check "Available for group members only" 4. Go to calendar as a member of the grouping selected in 3 and click "Export Calendar" 5. Click "Export". -----> The event created in 1 is included in the ics file (expected behaviour) 6. Click "Get calendar URL" and import the Internet Calendar in, for example, Outlook. -----> The event created in 1 is NOT included in the imported calendar. (unexpected behaviour)
    • Workaround:
      Hide

      FIX:
      in calendar/export_execute.php
      change
      if (!groups_course_module_visible($cm)) {
      by
      if (!groups_course_module_visible($cm,$userid)) {

      Show
      FIX: in calendar/export_execute.php change if (!groups_course_module_visible($cm)) { by if (!groups_course_module_visible($cm,$userid)) {
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      if enablegroupmembersonly is active (SITE ADMINISTRATION / ► DEVELOPMENT / ► EXPERIMENTAL / ► EXPERIMENTAL SETTINGS ► "Enable group members only" is checked) the activities available for "group members only" (Common module settings ► Show advanced ► Select a grouping ► Check "Available for group members only") are not included in the exported calendar with URL (and imported in Outlook, Mozilla Thunderbird/Lightning, or other external clients)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                orived Oscar Rived
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: