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

move_section function can lead to data corruption

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.3
    • 2.3
    • Course
    • MOODLE_22_STABLE
    • MOODLE_23_STABLE
    • wip-mdl-33367
    • Hide

      Test 1:

      1. run phpunit course/tests/courselib_test.php

      Test 2:

      1. Turn AJAX off for course
      2. Move course up and down and make sure you can do it.

      Test 3:

      1. Turn AJAX on for course
      2. Drag and move course up and down and make sure you can do it.
      Show
      Test 1: run phpunit course/tests/courselib_test.php Test 2: Turn AJAX off for course Move course up and down and make sure you can do it. Test 3: Turn AJAX on for course Drag and move course up and down and make sure you can do it.

    Description

      move_section function is not using transaction and can lead to data corruption.
      Also, it should use move_section_to, as it do similar work.

      Attachments

        Issue Links

          Activity

            People

              rajeshtaneja Rajesh Taneja
              rajeshtaneja Rajesh Taneja
              Sam Hemelryk Sam Hemelryk
              Michael de Raadt Michael de Raadt
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12