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

Incorrect usage of moodle_exception

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.1.6, 3.2.3
    • Unit tests
    • MOODLE_32_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-58465-master
    • Hide

      1/ Testing is optional.

      2/ Add this line

      $course2['shortname'] = "bla";

      above the for loop where the patch makes changes.

      3/ Run core_course_externallib_testcase and see the exception. Make sure you get a proper fail and exception, not an undefined error.

      Show
      1/ Testing is optional. 2/ Add this line $course2 [ 'shortname' ] = "bla" ; above the for loop where the patch makes changes. 3/ Run core_course_externallib_testcase and see the exception. Make sure you get a proper fail and exception, not an undefined error.
    • 3.3 sprint 5

    Description

      While reviewing MDL-58456, I found a few other incorrect usage of moodle_exception

      Attachments

        Activity

          People

            ankit_frenz Ankit Agarwal
            ankit_frenz Ankit Agarwal
            Marcus Green Marcus Green
            Dan Poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/May/17