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

availability_group: With hidden groups, can throw warning

XMLWordPrintable

      If a course contains hidden groups and the current user doesn't have permission to view them, then when you edit settings for an activity, the system shows a warning:

      PHP Warning: Undefined property: stdClass::$visibility in /var/www/html/moodle/availability/condition/group/classes/frontend.php on line 58

      This was introduced in MDL-68093 (Moodle 4.2) when group visibility was added.

      Probably nobody has noticed because normally, users who can edit activity settings do have the permission to view hidden groups. (Or I failed to find the existing issue...)

            quen Sam Marshall
            quen Sam Marshall
            Tim Hunt Tim Hunt
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 28 minutes
                3h 28m

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