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

Description of method result value for update_grades_return is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.7
    • 2.7
    • Gradebook, Web Services
    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • Hide

      Same that MDL-30085

      But use this client script instead:
      https://gist.github.com/jleyva/10719337

      The script prints the upgrade_grades return information so you can verify that it works as expected and returns a numeric value:

      0 => OK,
      1 => Fail,
      2 => Updated Multiple,
      4 => Locked

      (Yes, 0 means OK and 3 is missing, see lib/grade/constans.php)

      Show
      Same that MDL-30085 But use this client script instead: https://gist.github.com/jleyva/10719337 The script prints the upgrade_grades return information so you can verify that it works as expected and returns a numeric value: 0 => OK, 1 => Fail, 2 => Updated Multiple, 4 => Locked (Yes, 0 means OK and 3 is missing, see lib/grade/constans.php)

      It should return just an external value, currently is returning a single structure

      Unit tests works since the function is called directly without the ws wrapper that checks for correct input/output values

      The easy way to ix that is to change the result format for that function

            jleyva Juan Leyva
            jleyva Juan Leyva
            Sam Hemelryk Sam Hemelryk
            Damyon Wiese Damyon Wiese
            Ankit Agarwal Ankit Agarwal
            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.