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

move_section function can lead to data corruption

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.3
    • 2.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.

      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.

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Sam Hemelryk Sam Hemelryk
            Michael de Raadt Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.