XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.6
    • Libraries
    • MOODLE_24_STABLE
    • MOODLE_26_STABLE
    • MDL-34472-master
    • 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)
    • 3
    • BACKEND Sprint 2

    Description

      Add deprecate warning to get_context_instance() function

      Attachments

        Issue Links

          Activity

            People

              ankit_frenz Ankit Agarwal
              ankit_frenz Ankit Agarwal
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Mark Nelson Mark Nelson
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13