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

Moving blocks up/down causes blocks to disappear

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.9.7
    • None
    • Blocks
    • None
    • Linux, MySQL 5
    • MOODLE_19_STABLE

    Description

      In the foreach on line 580, blockid is compared instead of id.
      As a result, when moving a block up or down, if the block next to it is of the same type, then the weight of that block is not updated.
      The result is that you end up with weights like:

      • 0
      • 1
      • 3
      • 3

      Instead of:

      • 0
      • 1
      • 2
      • 3

      If you have two weights the same and one missing, only one is shown.

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            dobedobedoh Andrew Lyons
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: