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

Drag and Drop blocks stop working after a block is deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.1, 1.8
    • Component/s: Blocks, JavaScript
    • Labels:
      None
    • Environment:
      Internet Explorer 6, Firefox 2 on Windows XP
    • Database:
      Any
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      If you delete a block and then try to drag and drop another block (without reloading the page first) it causes errors. In Firefox, Firebug reports that main.blocks[i] has no properties in block_class.prototype.reset_regions. It causes IE 6 to do the whole "A script is causing Internet Explorer to run slowly" thing...

      My guess is the deleted block doesn't get removed from the main.blocks array. Hopefully I'll have a chance to look into this at some point later today (if no one else can see an obvious fix in the meantime of course )

        Attachments

          Activity

            People

            Assignee:
            vyshane Vy-Shane Sin Fat
            Reporter:
            catbert Andrew Walker
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jan/07