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

Invalid null return in privacy types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 3.3.5, 3.4.2
    • Privacy
    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • Privacy Sprint 1

      The privacy types plugintype_link, subsystem_link, user_preference return null for the get_privacy_fields() method which isn't allowed as the return type is "array". If they are ever called, they throw a TypeError.

      To reproduce:

      $a = new \core_privacy\local\metadata\types\user_preference('my name');
      $a->get_privacy_fields();

       

            abgreeve Adrian Greeve
            maherne Michael Aherne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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