XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.6
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide
      1. make sure get_context_instance() is not used in core except in one unit test.
      2. Try adding something like print_object(get_context_instance(CONTEXT_COURSE, $courseid));
      3. Make sure it works with warning in developer mode.
      4. make sure all unit tests pass as before
      5. Visit user system profile page and course profile page, make sure there are no debug warnings/errors
      6. Download and upload gradesheet for an assignment and make sure no errors are shown (Home ► Courses ► Miscellaneous ► test ► General ► Assignment ► Grading)
      Show
      make sure get_context_instance() is not used in core except in one unit test. Try adding something like print_object(get_context_instance(CONTEXT_COURSE, $courseid)); Make sure it works with warning in developer mode. make sure all unit tests pass as before Visit user system profile page and course profile page, make sure there are no debug warnings/errors Download and upload gradesheet for an assignment and make sure no errors are shown (Home ► Courses ► Miscellaneous ► test ► General ► Assignment ► Grading)
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-34472-master
    • Story Points:
      3
    • Sprint:
      BACKEND Sprint 2

      Description

      Add deprecate warning to get_context_instance() function

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13