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

Names of sections renamed inline do not change in the keyboard drag and drop menu

    XMLWordPrintable

Details

    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • Hide

      Setup

      • Create two courses
        1. Topics course - It should be set to use the Topics course format with* 4 sections*
        2. Weeks course - it should use the Weekly course format with 4 sections and have a start date of 17th March 2020

      (repeat the testing for all branches, specifically because solutions are different)

      Topics format

      1. As admin navigate to Topics course
      2. Turn on editing
      3. Click on the editing icon for Topic 2
      4. Change the name to Custom name
      5. Click on the drag handle for Custom name
      6. Verify that the title of navigation menu is Move Custom name
      7. Verify that Topic 2 is not present in the menu
      8. Close the menu
      9. Click on the drag handle for Topic 4
      10. Verify that Custom name is in the navigation menu
      11. Verify that Topic 2 is not present in the menu

      Weeks format

      1. As admin navigate to Weeks course
      2. Turn on editing
      3. Click on the editing icon for 24 March - 30 March
      4. Change the name to Custom name
      5. Click on the drag handle for Custom name
      6. Verify that the title of navigation menu is Move Custom name
      7. Verify that 24 March - 30 March is not present in the menu
      8. Close the menu
      9. Click on the drag handle for 7 April - 14 April
      10. Verify that Custom name is in the navigation menu
      11. Verify that 24 March - 30 March is not present in the menu
      Show
      Setup Create two courses Topics course - It should be set to use the Topics course format with* 4 sections* Weeks course - it should use the Weekly course format with 4 sections and have a start date of 17th March 2020 (repeat the testing for all branches, specifically because solutions are different) Topics format As admin navigate to Topics course Turn on editing Click on the editing icon for Topic 2 Change the name to Custom name Click on the drag handle for Custom name Verify that the title of navigation menu is Move Custom name Verify that Topic 2 is not present in the menu Close the menu Click on the drag handle for Topic 4 Verify that Custom name is in the navigation menu Verify that Topic 2 is not present in the menu Weeks format As admin navigate to Weeks course Turn on editing Click on the editing icon for 24 March - 30 March Change the name to Custom name Click on the drag handle for Custom name Verify that the title of navigation menu is Move Custom name Verify that 24 March - 30 March is not present in the menu Close the menu Click on the drag handle for 7 April - 14 April Verify that Custom name is in the navigation menu Verify that 24 March - 30 March is not present in the menu

    Description

      If you rename a course section using the inline editor the name is not updated in the drag and drop menu until after the page is refreshed.

      Steps to reproduce

      1. Go to a course using the topics format with at least two sections
      2. Turn on editing
      3. Rename one of the sections inline (for example Topic 2 to Custom name)
      4. Click on the drag handle for a different section

      I would expect a section named Custom name to be displayed, but instead the old name of Topic 2 is

      Attachments

        1. html-after-inline-rename.png
          69 kB
          Neill Magill
        2. MDL-68189.jpg
          37 kB
          Anna Carissa Sadia
        3. Screenshot 2020-03-23 at 15.49.19.png
          2.24 MB
          Bas Brands

        Issue Links

          Activity

            People

              nmagill Neill Magill
              nmagill Neill Magill
              Bas Brands Bas Brands
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Anna Carissa Sadia Anna Carissa Sadia
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/20

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 40 minutes
                  1h 40m