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

get_discussion_posts cannot be called using null args despite args being nullable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.3, 3.10, 3.11
    • Forum
    • None
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      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.

            Unassigned Unassigned
            jaked Jake Dallimore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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