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

Activity is not in alphabetical order when the name is lowercase

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-74764-master
    • Hide

      Prerequisites:

      Either:

      • Download and install the example plugin, which is attached below; or
      • Edit an existing string:
        • Open mod/forum/lang/en/forum.php in your editor
        • find the modulename string definition
        • change the value from 'Forum' to 'example'
        • Purge caches

      Test

      1. log in as Admin 
      2. Navigate to Site administration -> Courses -> Activity chooser -> Recommended activities
        1. Confirm that the 'example' activity is between Database and External tool
        2. Confirm that all activities are sorted alphabetically
      3. Go to any Course and turn on Edit mode.
      4. Click Add an activity or resource and observe the pop-up list.
        1. Confirm that the 'example' activity is between Database and External tool
        2. Confirm that all activities are sorted alphabetically
      Show
      Prerequisites: Either: Download and install the example plugin, which is attached below; or Edit an existing string: Open mod/forum/lang/en/forum.php in your editor find the modulename string definition change the value from 'Forum' to 'example' Purge caches Test log in as Admin  Navigate to Site administration -> Courses -> Activity chooser -> Recommended activities Confirm that the 'example' activity is between Database and External tool Confirm that all activities are sorted alphabetically Go to any Course and turn on Edit mode. Click Add an activity or resource and observe the pop-up list. Confirm that the 'example' activity is between Database and External tool Confirm that all activities are sorted alphabetically

      Method sort activity by name is incorrect when its name has the first character in lowercase. 

       

      Current behavior:

      The activity has the first letter of a name in lower case will be placed at the end of the activity list.

       

      It has to be sorted in alphabetical order (a-z).
       
      Step to reproduce: 

      1. log in as Admin 
      2. Go to any Course and turn on Edit mode.
      3. Click Add an activity or resource.
      4. Observe the pop-up list
        • example activity is the last item on the list
        • All other activities are in alphabetical order

        1. example.zip
          5 kB
        2. image-2022-05-16-15-35-28-145.png
          image-2022-05-16-15-35-28-145.png
          62 kB
        3. MDL-74764_master_1.png
          MDL-74764_master_1.png
          51 kB
        4. MDL-74764_master_2.png
          MDL-74764_master_2.png
          86 kB
        5. MDL-74764_v311_1.png
          MDL-74764_v311_1.png
          57 kB
        6. MDL-74764_v311_2.png
          MDL-74764_v311_2.png
          148 kB
        7. MDL-74764_v400_1.png
          MDL-74764_v400_1.png
          50 kB
        8. MDL-74764_v400_2.png
          MDL-74764_v400_2.png
          97 kB

            khoand Khoa Nguyen Dang
            khoand Khoa Nguyen Dang
            Paul Holden Paul Holden
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 50 minutes
                2h 50m

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