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

Javascript error when course overview block was accidentally added twice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 2.8.1, 2.9
    • Fix Version/s: None
    • Component/s: Dashboard (My home)
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE

      Description

      When editing the "Default My home page" (Appearance->Default My home page) adding a duplicate block causes a JavaScript error.

      Uncaught TypeError: Cannot read property 'setAttribute' of null module.js:1

      This also causes the ability to click on the action button to be removed (i.e. you can't remove the duplicate block or any other block).

      This condition disappears when the duplicate database entry is manually removed from mdl_block_instances.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              conradtulk Conrad Tulk
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: