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

get_discussion_posts cannot be called using null args despite args being nullable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.3, 3.10, 3.11
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      Description

      I noticed I can't call call get_discussion_posts using null for the second and third params. E.g.

       

      get_discussion_posts($discussion->id, null, null)

       

      despite the second and third params being nullable in the method signature. I'm guessing the expectation was for them to get defaults when called like this but it doesn't seem to work that way because of the web service validation. This needs a look in a follow up too, though it's certainly only a minor issue since we can call the method fine if we specify the args.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jaked Jake Dallimore
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: