Moodle
  1. Moodle
  2. MDL-31383

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.1.2, 2.2.1
    • Fix Version/s: 2.3
    • Component/s: AJAX and JavaScript, Course
    • 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
    • Rank:
      37900

      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

        Issue Links

          Activity

          Hide
          Michael de Raadt added a comment -

          Thanks for spotting that.

          I was able to replicate the problem.

          Show
          Michael de Raadt added a comment - Thanks for spotting that. I was able to replicate the problem.
          Hide
          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
          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
          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
          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
          Dan Poltawski added a comment -

          This has been fixed by MDL-31052 in 2.3

          Show
          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: