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

Questions Bank: Select all checkbox should be checked when all options are selected

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Note: Test on various supported browsers

      Question bank
      1. Login as a teacher or admin
      2. Go to a course's Question bank page.
      3. Create 2 questions
      4. Tick the Select all checkbox.
      5. Confirm that all of the questions on the table are selected.
      6. Confirm that the Select all checkbox is also ticked.
      7. Untick the Select all checkbox
      8. Confirm that all of the questions on the table are unselected.
      9. Confirm that the Select all checkbox is also unticked.
      10. Tick all of the questions.
      11. Confirm that the Select all checkbox becomes ticked as well.
      12. Untick one of the questions
      13. Confirm that the Select all checkbox becomes unticked.
      Adding questions to a quiz from the question bank
      1. Create a quiz.
      2. Add questions from the question bank.
      3. When the dialog loads, confirm that the "Add selected questions to the quiz" button is disabled.
      4. Tick the Select all checkbox.
      5. Confirm that all of the questions on the table are selected.
      6. Confirm that the Select all checkbox is also ticked.
      7. Confirm that the "Add selected questions to the quiz" button becomes enabled.
      8. Untick the Select all checkbox
      9. Confirm that all of the questions on the table are unselected.
      10. Confirm that the Select all checkbox is also unticked.
      11. Confirm that the "Add selected questions to the quiz" button becomes disabled.
      12. Tick all of the questions.
      13. Confirm that the Select all checkbox becomes ticked as well.
      14. Confirm that the "Add selected questions to the quiz" button becomes enabled.
      15. Untick one of the questions
      16. Confirm that the Select all checkbox becomes unticked.
      17. Confirm that the "Add selected questions to the quiz" button is still enabled.
      18. Untick all of the questions
      19. Confirm that the "Add selected questions to the quiz" button becomes disabled.
      Show
      Note: Test on various supported browsers Question bank Login as a teacher or admin Go to a course's Question bank page. Create 2 questions Tick the Select all checkbox. Confirm that all of the questions on the table are selected. Confirm that the Select all checkbox is also ticked. Untick the Select all checkbox Confirm that all of the questions on the table are unselected. Confirm that the Select all checkbox is also unticked. Tick all of the questions. Confirm that the Select all checkbox becomes ticked as well. Untick one of the questions Confirm that the Select all checkbox becomes unticked. Adding questions to a quiz from the question bank Create a quiz. Add questions from the question bank. When the dialog loads, confirm that the " Add selected questions to the quiz " button is disabled. Tick the Select all checkbox. Confirm that all of the questions on the table are selected. Confirm that the Select all checkbox is also ticked. Confirm that the " Add selected questions to the quiz " button becomes enabled. Untick the Select all checkbox Confirm that all of the questions on the table are unselected. Confirm that the Select all checkbox is also unticked. Confirm that the " Add selected questions to the quiz " button becomes disabled. Tick all of the questions. Confirm that the Select all checkbox becomes ticked as well. Confirm that the " Add selected questions to the quiz " button becomes enabled. Untick one of the questions Confirm that the Select all checkbox becomes unticked. Confirm that the " Add selected questions to the quiz " button is still enabled. Untick all of the questions Confirm that the " Add selected questions to the quiz " button becomes disabled.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63944-master

      Description

      Currently, when you click on Select all checkbox, all the checkboxs of each row was changed to checked state, but the Select all checkbox does not change to checked state.

      I also found that in qbankmanager.js have a part of code that force the select all checkbox always in unchecked state

        Balsamiq Wireframes

          Attachments

          1. MDL-63944.bmpr
            15 kB
          2. MDL-63944.jpg
            MDL-63944.jpg
            44 kB
          3. MDL-63944 (2).jpg
            MDL-63944 (2).jpg
            29 kB
          4. Screen Shot 2018-11-09 at 10.07.13 AM.png
            Screen Shot 2018-11-09 at 10.07.13 AM.png
            205 kB
          5. Screen Shot 2018-11-09 at 10.07.21 AM.png
            Screen Shot 2018-11-09 at 10.07.21 AM.png
            207 kB

            Issue Links

              Activity

                People

                • Votes:
                  3 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    20/May/19

                    Time Tracking

                    Estimated:
                    Original Estimate - 0 minutes
                    0m
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h