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

The function course_delete_module should return an untranslated errorcode for the exceptions for the web service.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.5
    • Course
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-37654_master
    • Hide
      1. Create a course module.
      2. Edit the function course_delete_module in course/lib.php by copying the first occurrence of "throw new exception ..." in this issues diff and placing it after the declaration of $modulename.
      3. Attempt to delete the module and ensure exception is thrown as expected.
      4. Replace this "throw new exception ..." with the next one and continue until you have gone through all of them in this diff.
      5. Remove the changes you have done from course/lib.php and ensure you can delete the module instance.
      Show
      Create a course module. Edit the function course_delete_module in course/lib.php by copying the first occurrence of "throw new exception ..." in this issues diff and placing it after the declaration of $modulename. Attempt to delete the module and ensure exception is thrown as expected. Replace this "throw new exception ..." with the next one and continue until you have gone through all of them in this diff. Remove the changes you have done from course/lib.php and ensure you can delete the module instance.

      The web services depend on an error code to be returned when an exception is thrown, it is not logical to pass a string that will vary depending on the module being used. Return an error code so it will be the same regardless of module.

            markn Mark Nelson
            markn Mark Nelson
            Jérôme Mouneyrac Jérôme Mouneyrac
            Damyon Wiese Damyon Wiese
            Adrian Greeve Adrian Greeve
            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.