Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32765 Paging course support remaining issues (follow on from MDL-32508)
  3. MDL-32824

Drag/dropping a section needs to cater for update to title/link

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable editing on the course page and make sure that course format is topics.
      2. Make sure that some sections have custom title and some default one.
      3. Drag any section over some sections with custom and default titles.
      4. Make sure that the order of titles is correct once you dropped the section.
      5. Change the course format to weekly and repeat steps 2-4.
      Show
      Enable editing on the course page and make sure that course format is topics. Make sure that some sections have custom title and some default one. Drag any section over some sections with custom and default titles. Make sure that the order of titles is correct once you dropped the section. Change the course format to weekly and repeat steps 2-4.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-32824-master-2

      Description

      This is partly my fault for loosing some markup I think, but we need to think about the case of the default topic title too.

      1/ Switch on paged section mode
      2/ Turn on editing on front page
      3/ Drag and drop sections

      Problems:

      • If the default title is there (e.g. week dates/'Topic 1') the titles do not get switched
      • The links don't get changed (it needs updating with section number)

      This is problematic, because if someone defines a section name the section name needs to stay with the text, but the link needs to be changed.

      I could probably define some markup for displaying the default title, and different markup for the user created title, then you could work out if the default title was being displayed or a new one. Thoughts required!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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