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

Linked competencies can not be added to learning plan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.11
    • 3.11
    • Competencies
    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • Hide

      Prerequisites

      • Must have some users created and enrolled in a course. 

      Tests

      1. Log in as the administrator.
      2. Go to the Administration block > Site administration > Competencies.
      3. Click on "Competency Frameworks".
      4. Add a new competency framework if you don't have one
        1. Click on "Add new competency framework"
        2. Fill in the Name, Id number, configure scales, and save.
      5. Click on your framework in the tree.
      6. Click "Add competency"
      7. Fill in the Name and Id number.
      8. Create another competency.
      9. Create another framework and add two competencies to that framework.
      10. Go to your course and add the competencies created in the previous step.
      11. Go to the Administration block > Site administration > Competencies.
      12. Select "Learning plan templates".
      13. Follow the "Add new learning plan template" button.
      14. Fill in the "Name" field with a name and click "Save changes".
      15. Click on "Learning plan templates".
      16. Click on the name of the learning plan template.
      17. Click the "Add competencies to learning plan template" button.
      18. Select the competencies created in the step 9 competency and click "Add".
      19. Check the competencies has been added and you should see them on the Learning plan template competencies page.
      20. Click the "Add competencies to learning plan template" button.
      21. Select a different "Competency Framework" and select a different competency (click "Add").
      22. Check that ** both competencies should be displayed with details of the framework.
      23. Go to the Administration block > Site administration > Competencies.
      24. Select "Learning plan templates".
      25. Click the number under "Learning plans" (should be a "0").
      26. Select some users from the "Select users to create plans for" select box.
      27. Click "Create plans".
      28. The students should now be present in the list of learning plans.
      29. Click the learning plan name for a student.
      30. Confirm there should be a title "Template" and a link underneath with (Unlink from template). Unlink the template.
      31. Confirm the "Template" title should disappear, but the learning plan is still the same.
      Show
      Prerequisites Must have some users created and enrolled in a course.  Tests Log in as the administrator. Go to the Administration block > Site administration > Competencies. Click on "Competency Frameworks". Add a new competency framework if you don't have one Click on "Add new competency framework" Fill in the Name, Id number, configure scales, and save. Click on your framework in the tree. Click "Add competency" Fill in the Name and Id number. Create another competency. Create another framework and add two competencies to that framework. Go to your course and add the competencies created in the previous step. Go to the Administration block > Site administration > Competencies. Select "Learning plan templates". Follow the "Add new learning plan template" button. Fill in the "Name" field with a name and click "Save changes". Click on "Learning plan templates". Click on the name of the learning plan template. Click the "Add competencies to learning plan template" button. Select the competencies created in the step 9 competency and click "Add". Check  the competencies has been added and you should see them on the Learning plan template competencies page. Click the "Add competencies to learning plan template" button. Select a different "Competency Framework" and select a different competency (click "Add"). Check that ** both competencies should be displayed with details of the framework. Go to the Administration block > Site administration > Competencies. Select "Learning plan templates". Click the number under "Learning plans" (should be a "0"). Select some users from the "Select users to create plans for" select box. Click "Create plans". The students should now be present in the list of learning plans. Click the learning plan name for a student. Confirm there should be a title "Template" and a link underneath with (Unlink from template). Unlink the template. Confirm the "Template" title should disappear, but the learning plan is still the same.

      Discovered while testing MDLQA-15865

      Adding a competency to a learning plan triggers an error when the competency is also added to a course.

      To replicate:
      create a new competency framework
      add one competency
      create a new learning plan
      add the competency to the learning plan (should work fine)
      go to a course and add the competency
      create another new learning plan
      add the competency to the learning plan

      this results in the following error:

      Coding error detected, it must be fixed by a programmer: Unexpected property showactivitydates
      Error code: codingerror
      line 145 of /lib/classes/external/exporter.php: coding_exception thrown
      line 102 of /admin/tool/lp/classes/external/competency_summary_exporter.php: call to core\external\exporter->export()
      line 125 of /lib/classes/external/exporter.php: call to tool_lp\external\competency_summary_exporter->get_other_values()
      line 115 of /admin/tool/lp/classes/output/template_competencies_page.php: call to core\external\exporter->export()
      line 530 of /admin/tool/lp/classes/external.php: call to tool_lp\output\template_competencies_page->export_for_template()
      line 261 of /lib/externallib.php: call to tool_lp\external::data_for_template_competencies_page()
      line 81 of /lib/ajax/service.php: call to external_api::call_external_function()

            pholden Paul Holden
            basbrands Bas Brands
            Carlos Escobedo Carlos Escobedo
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.