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

Marking guide "Frequently used comments" throws JS errors

    XMLWordPrintable

Details

    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • master_MDL-33835
    • Hide

      Create an assignment and set it to use the advanced grading method "Marking Guide" - make sure you add some frequently used comments to the marking guide.
      On the assignment submissions page choose to grade an existing student - on the page that loads before doing anything else click on one of the comments and make sure no JS errors occur and the comment is added to the comment field of the first criterion.

      Show
      Create an assignment and set it to use the advanced grading method "Marking Guide" - make sure you add some frequently used comments to the marking guide. On the assignment submissions page choose to grade an existing student - on the page that loads before doing anything else click on one of the comments and make sure no JS errors occur and the comment is added to the comment field of the first criterion.

    Description

      When you try to add a frequently used comment, if you have not yet selected a criteria comment field, a JS error is shown and nothing is added to any comment field.

      currentfocus is null
      http://michael.moodle.local/moodle_testing/lib/javascript.php/1340084662/grade/grading/form/guide/js/guide.js
      Line 1

      I suggest the currentfocus variable be set to the first criterion comment initially. That would alleviate this error and put comments somewhere initially.

      Attachments

        Activity

          People

            danmarsden Dan Marsden
            salvetore Michael de Raadt
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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