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

Moving blocks up/down causes blocks to disappear

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.7
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      Linux, MySQL 5
    • Affected Branches:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: