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

Invalid null return in privacy types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.2
    • Fix Version/s: None
    • Component/s: Privacy
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Epic Link:
    • Sprint:
      Privacy Sprint 1

      Description

      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();

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              maherne Michael Aherne
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: