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

Unexpected error when adding a competency to a module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
      None
    • Sprint:
      CBE Sprint 6

      Description

      To replicate:

      1. Add a competency to a course
      2. Hide the frameworks this competency belongs to
      3. Edit an activity and add the competency

      Expected

      • The module saves

      Actual

      • The following error occurs:

      Coding error detected, it must be fixed by a programmer: A competency belonging to hidden framework can not be linked to course module
       
      More information about this error
      Debug info:
      Error code: codingerror
      Stack trace:
       
          line 1311 of /admin/tool/lp/classes/api.php: coding_exception thrown
          line 452 of /admin/tool/lp/lib.php: call to tool_lp\api::add_competency_to_course_module()
          line 184 of /course/modlib.php: call to tool_lp_coursemodule_edit_post_actions()
          line 344 of /course/modlib.php: call to plugin_extend_coursemodule_edit_post_actions()
          line 609 of /course/modlib.php: call to edit_module_post_actions()
          line 272 of /course/modedit.php: call to update_moduleinfo()
      

        Attachments

          Activity

            People

            • Assignee:
              taboubii Issam Taboubi
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Jun Pataleta
              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: