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

FEATURE_CAN_DISPLAY not fully implemented - e.g. Question bank can be selected in single activity format

    • MOODLE_500_STABLE
    • MDL-85405_500_STABLE
    • MDL-85405_main
    • Hide

      1. Create a course named "Course 1"
      2. Under "Course format" set "Single activity".
      3. Verify the option "Question bank" is not there under "Type of activity".
      4. Create a second course named "Course 2". Leave the course format as the default "Topics"
      5. Create 2 users, enrol 1 on as a teacher of "Course 2", and one as a student of "Course 2"
      6. Log in as the teacher and go to Course 2
      7. Add a Page the the course called "Page 1"
      8. Go to More > Question banks
      9. Create a question bank called "Question bank 1"
      10. Go to the main course page, turn on editing mode.
      11. Click "Add a block" and add the "Activities" block.

      • Confirm that there is no "Question banks" link in the block

      12. Click "Add a block" and add the "Recent activity" block.

      • Confirm that the "Added question bank" action appears in the "Recent activity" block.

      13. Follow the "Activities" link at the top of the course page

      • Confirm that Question banks are not shown on the activities report.

      14. Go to More > Filters

      • Confirm that "Activity names auto-linking" is enabled.

      15. Go back to the course page, and add a Text and Media area.
      16. Give it a name, set the text to "This has a link to Page 1 and Question bank 1" and save.

      • Confirm that when the label is displayed, "Page 1" is a link to the page, but "Question bank 1" is not a link.

      17. Log out and log back in as the student.
      18. Go to "Course 2"

      • Confirm that the "Added question bank" action does not appear in the "Recent activity" block.
      Show
      1. Create a course named "Course 1" 2. Under "Course format" set "Single activity". 3. Verify the option "Question bank" is not there under "Type of activity". 4. Create a second course named "Course 2". Leave the course format as the default "Topics" 5. Create 2 users, enrol 1 on as a teacher of "Course 2", and one as a student of "Course 2" 6. Log in as the teacher and go to Course 2 7. Add a Page the the course called "Page 1" 8. Go to More > Question banks 9. Create a question bank called "Question bank 1" 10. Go to the main course page, turn on editing mode. 11. Click "Add a block" and add the "Activities" block. Confirm that there is no "Question banks" link in the block 12. Click "Add a block" and add the "Recent activity" block. Confirm that the "Added question bank" action appears in the "Recent activity" block. 13. Follow the "Activities" link at the top of the course page Confirm that Question banks are not shown on the activities report. 14. Go to More > Filters Confirm that "Activity names auto-linking" is enabled. 15. Go back to the course page, and add a Text and Media area. 16. Give it a name, set the text to "This has a link to Page 1 and Question bank 1" and save. Confirm that when the label is displayed, "Page 1" is a link to the page, but "Question bank 1" is not a link. 17. Log out and log back in as the student. 18. Go to "Course 2" Confirm that the "Added question bank" action does not appear in the "Recent activity" block.
    • Hide

      Code verified against automated checks.

      Checked MDL-85405 using repository: https://github.com/marxjohnson/moodle.git

      More information about this report

      Built on: Thu Jun 12 08:17:25 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85405 using repository: https://github.com/marxjohnson/moodle.git MOODLE_500_STABLE (0 errors / 0 warnings) [branch: MDL-85405_500_STABLE | CI Job ] main (0 errors / 0 warnings) [branch: MDL-85405_main | CI Job ] More information about this report Built on: Thu Jun 12 08:17:25 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-85405 -500 https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19317/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66016/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66017/ Behat (Firefox - boost) Launching automatic jobs for branch MDL-85405 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19318/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66018/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66019/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66020/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/66021/ App tests (stable app version) Built on: Tue May 13 09:13:12 UTC 2025

      In the single activity format, the new question bank activity should not appear in the available activities. If selected, the results are quite unpredictable.

      For students, the course has blank content. It also shows some warnings if debugging is enabled.

      For teachers, it shows empty sections where they can add new activities. However, if the user exits the course and enters again, it shows an empty section (because the created activity has been moved to section 1).

      The option should be removed form the format activity selector.

       

            marxjohnson Mark Johnson
            tusefomal Ferran Recio
            Stefan Hanauska Stefan Hanauska
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

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