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

Section highlighting does not stick with topic section with AJAX off

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.3
    • Course
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide
      1. Run phpunit tests
      1. Log in as admin
      2. Navigate to Site admin > Appearance > AJAX and JavaScript
      3. Uncheck "Enable AJAX" and save settings
      4. Navigate to a course or create a new one
      5. Edit the course settings and set the course format to Topics
      6. Add some content to sections so you can track their movement
      7. Highlight a section somewhere in the middle
      8. Click the up icon to shift the highlighted section up
      9. VERIFY: highlighted section is moved up
      10. Click the down icon to shift the highlighted section down
      11. VERIFY: highlighted section is moved down
      12. Navigate to Site admin > Appearance > AJAX and JavaScript
      13. Check "Enable AJAX" and save settings
      14. Navigate to the same course
      15. Drag the highlighted course section up
      16. VERIFY: turn editing off and verify that the highlighted section has moved
      17. Drag the highlighted course section down
      18. VERIFY: turn editing off and verify that the highlighted section has moved
      19. Drag the a non-highlighted section from below the highlighted section to a place above it
      20. VERIFY: turn editing off and verify that the highlighted section has now changed, it is the same section.
      21. Drag the a non-highlighted section from above the highlighted section to a place below it
      22. VERIFY: turn editing off and verify that the highlighted section has now changed, it is the same section.
      Show
      Run phpunit tests Log in as admin Navigate to Site admin > Appearance > AJAX and JavaScript Uncheck "Enable AJAX" and save settings Navigate to a course or create a new one Edit the course settings and set the course format to Topics Add some content to sections so you can track their movement Highlight a section somewhere in the middle Click the up icon to shift the highlighted section up VERIFY: highlighted section is moved up Click the down icon to shift the highlighted section down VERIFY: highlighted section is moved down Navigate to Site admin > Appearance > AJAX and JavaScript Check "Enable AJAX" and save settings Navigate to the same course Drag the highlighted course section up VERIFY: turn editing off and verify that the highlighted section has moved Drag the highlighted course section down VERIFY: turn editing off and verify that the highlighted section has moved Drag the a non-highlighted section from below the highlighted section to a place above it VERIFY: turn editing off and verify that the highlighted section has now changed, it is the same section. Drag the a non-highlighted section from above the highlighted section to a place below it VERIFY: turn editing off and verify that the highlighted section has now changed, it is the same section.

      I discovered a peculiar error when shifting sections while testing. When I highlighted a section and shifted that section up, the highlighting shifted to the section that took its place (formerly above, now below). When I shifted a highlighted section down, the highlighting stayed with the topic section. This seems to happen only with AJAX turned off.

      This reminded me of a case that Raj mentioned recently where unit tests were only testing section moving in one direction, but not the other. It might be worth checking the unit tests for this as well.

      Replication steps:

      1. Log in as admin
      2. Navigate to Site admin > Appearance > AJAX and JavaScript
      3. Uncheck "Enable AJAX" and save settings
      4. Navigate to a course or create a new one
      5. Edit the course settings and set the course format to Topics
      6. Add some content to sections so you can track their movement
      7. Highlight a section somewhere in the middle
      8. Click the up icon to shift the highlighted section up
      9. Click the down icon to shift the highlighted section down
      10. Navigate to Site admin > Appearance > AJAX and JavaScript
      11. Check "Enable AJAX" and save settings
      12. Navigate to the same course
      13. Drag the highlighted course section up
      14. Drag the highlighted course section down

      Expected result: The highlighting stays with the same topic section

      Actual result: When moving the highlighted section upwards, with AJAX off, highlighting shifts to another section

            poltawski Dan Poltawski
            salvetore Michael de Raadt
            Rajesh Taneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.