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

Competencies minor javascript error "Could not find the trigger"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      If a student goes to Competencies page of a course and clicks on a competency to view the detail, there is a javascript error "Could not find the trigger" on the admin/tool/lp/user_competency_in_course.php page. This is because the student can't grade is own competency, so the rate button does not exist, but the inline grader is initiated anyway. This comes from the /admin/tool/lp/templates/user_competency_summary_in_course.mustache file on lines 90 to 107. Some of the javascript lines should have #cangrade condition.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              levemar Marie-Eve Lévesque
              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:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m