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

Competencies sort order is not preserved when plan is completed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide

      Plan

      • create a plan and add some competencies
      • reorder those competencies
      • complete the plan
      • go to the plan detail page, you should see no change on order display.

      Plan based on template

      • create a template and add some competencies
      • reorder those competencies
      • go to the template detail page and create a plan for a user
      • complete this plan
      • go to the plan detail page, you should see no change on order display.

      Run the unit test:

      mdk phpunit -r -s tool_lp_testsuite
      

      Show
      Plan create a plan and add some competencies reorder those competencies complete the plan go to the plan detail page, you should see no change on order display. Plan based on template create a template and add some competencies reorder those competencies go to the template detail page and create a plan for a user complete this plan go to the plan detail page, you should see no change on order display. Run the unit test: mdk phpunit -r -s tool_lp_testsuite
    • Affected Branches:
      MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-52755_master
    • Story Points:
      2
    • Sprint:
      CBE Sprint 5

      Description

      The sort order is changing when a plan status is set to completed and it should not (See attachments).

      To reproduce :

      • Create a new plan with status active
      • Add two competencies in the plan in the following order, name and idnumber :
        • Competency 1.2 cpt12
        • Competency 1.1 cpt11
      • Complete the plan
      • You should see the competencies in the same sort order but it changed (now sorted by idnumber ASC)

        Attachments

          Activity

            People

            • Assignee:
              taboubii Issam Taboubi
              Reporter:
              gaudreaj Jean-Philippe Gaudreau
              Peer reviewer:
              Frédéric Massart
              Participants:
              Component watchers:
              Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: