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

Group assignment nopermissiontocomment if trainer is in a separate group

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.4
    • 3.1.1, 3.2
    • Assignment
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE
    • Hide

      Make sure you are in a group with at least one user, who has the capability to submit anything (for instance a student).
      You can also just append &action=grading to the url to directly reach the grading table.

      Show
      Make sure you are in a group with at least one user, who has the capability to submit anything (for instance a student). You can also just append &action=grading to the url to directly reach the grading table.
    • Hide

      As an administrator...
      1. Create a new course
      2. Enrol a user "student" with the role Student
      3. Enrol your own user with the role Teacher
      4. Create a group "Group" and add the user "student"
      5. Create a new instance of assign
      5.1 Set a random name
      5.2 Set Students submit in Groups to "Yes"
      5.3 Save and display
      Assert: No Exception is thrown

      Show
      As an administrator... 1. Create a new course 2. Enrol a user "student" with the role Student 3. Enrol your own user with the role Teacher 4. Create a group "Group" and add the user "student" 5. Create a new instance of assign 5.1 Set a random name 5.2 Set Students submit in Groups to "Yes" 5.3 Save and display Assert: No Exception is thrown

      1. Set up a group assignment with the following group submission settings:
        Students submit in Groups: YES
        Require group to make Submission: NO
        Require all group members submit: YES
        Grouping for student Groups: None
      1. Set the trainer in a separate group
      2. If the Trainer enters the assignment the following error will appear (with Debug Information)

      You can't add comments

      More information about this error

      × Debug info:
      Error code: nopermissiontocomment

      × Stack trace:
      line 58 of /mod/assign/submission/comments/lib.php: comment_exception thrown
      line ? of unknownfile: call to assignsubmission_comments_comment_validate()
      line 7411 of /lib/moodlelib.php: call to call_user_func_array()
      line 7393 of /lib/moodlelib.php: call to component_callback()
      line 941 of /comment/lib.php: call to plugin_callback()
      line 952 of /comment/lib.php: call to comment->validate()
      line 440 of /comment/lib.php: call to comment->can_view()
      line 74 of /mod/assign/submission/comments/locallib.php: call to comment->output()
      line 1146 of /mod/assign/renderer.php: call to assign_submission_comments->view_summary()
      line 319 of /lib/outputrenderers.php: call to mod_assign_renderer->render_assign_submission_plugin_submission()
      line 901 of /mod/assign/renderer.php: call to plugin_renderer_base->render()
      line 319 of /lib/outputrenderers.php: call to mod_assign_renderer->render_assign_submission_status()
      line 4579 of /mod/assign/locallib.php: call to plugin_renderer_base->render()
      line 4830 of /mod/assign/locallib.php: call to assign->view_student_summary()
      line 594 of /mod/assign/locallib.php: call to assign->view_submission_page()
      line 52 of /mod/assign/view.php: call to assign->view()

      1. The Moodle site doesn't redner the Content properly caus of a missing exception handling.

            tobias.reischmann Tobias Reischmann
            rmootracker Roger Barras
            Jan Dageförde Jan Dageförde
            Andrew Lyons Andrew Lyons
            Simey Lameze Simey Lameze
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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