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

Activities filter for recent submissions shows submissions when it should not

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Navigate to /admin/settings.php?section=modsettingassignment
      Set assignment_showrecentsubmissions to false
      Navigate to /course/recent.php?id=<n>
      Click Advanced
      Activities dropdown no longer includes all assignments

      Show
      Navigate to /admin/settings.php?section=modsettingassignment Set assignment_showrecentsubmissions to false Navigate to /course/recent.php?id=<n> Click Advanced Activities dropdown no longer includes all assignments
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-30218-master

      Description

      When $CFG->assignment_showrecentsubmissions is set to false, students still see assignment filter options in the Activities filter for Recent submissions. This is confusing.

      Steps to reproduce:

      1. Navigate to /admin/settings.php?section=modsettingassignment
      2. Set assignment_showrecentsubmissions to false
      3. Navigate to /course/recent.php?id=<n>
      4. Click Advanced
      5. Activities dropdown includes all assignments

      Patch attached for removing assignments from this list where $CFG->assignment_showrecentsubmissions is false and user does not have capability moodle/grade:viewall

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: