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

Incorrect usage of moodle_exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.1.6, 3.2.3
    • Component/s: Unit tests
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-58465-master
    • Sprint:
      3.3 sprint 5

      Description

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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/May/17