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

Nested lists in course section summary can break AJAX drag and drop within that section

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.1.2, 2.2.1
    • Fix Version/s: 2.3
    • Component/s: Course, JavaScript
    • Labels:
    • Environment:
      It is occuring on both Windows/IIS and Solaris/Apache
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE

      Description

      It is possible to break the AJAX drag and drop functionality within a section using two combinations of HTML lists

      The first is an order list with a nested unordered list followed by a seperate ordered list

      The second is an unordered list with a nexted ordered list followed by a sepearte unordered list.

      In both cases drag and drop for the elements within the section that the summary is in does not activate. (however if an element from another section is dragged in it does not loose drag and drop functionality until the page is refreshed)

      The two miniumum html examples are:

      <ul>
      <li>test</li>
      <ol>
      <li>test</li>
      </ol></ul>
      <ul>
      <li>test</li>
      </ul>

      and

      <ol>
      <li>test</li>
      <ul>
      <li>test</li>
      </ul></ol>
      <ol>
      <li>test</li>
      </ol>

      Just found it to be happening in Moodle 2.3 as well as the 2.1.x versions I found it on

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            salvetore Michael de Raadt added a comment -

            Thanks for spotting that.

            I was able to replicate the problem.

            Show
            salvetore Michael de Raadt added a comment - Thanks for spotting that. I was able to replicate the problem.
            Hide
            nmagill Neill Magill added a comment -

            I was poking at this further and it seems I was wrong about it being nested lists. It seems to be releated to the number of unordered lists in the summary, if you have an even number it breaks drag and drop, an odd number and it is fine.

            Show
            nmagill Neill Magill added a comment - I was poking at this further and it seems I was wrong about it being nested lists. It seems to be releated to the number of unordered lists in the summary, if you have an even number it breaks drag and drop, an odd number and it is fine.
            Hide
            whymiss Yvonne Hamilton added a comment -

            We are using 2.1.3 Linux server with MySQL DB and have the same issue Neill identified.
            Ajax breaks when using lists in multiple groupings of two's

            Show
            whymiss Yvonne Hamilton added a comment - We are using 2.1.3 Linux server with MySQL DB and have the same issue Neill identified. Ajax breaks when using lists in multiple groupings of two's
            Hide
            poltawski Dan Poltawski added a comment -

            This has been fixed by MDL-31052 in 2.3

            Show
            poltawski Dan Poltawski added a comment - This has been fixed by MDL-31052 in 2.3

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12