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

Question bank: Filtering question by tags and then deleting, throws errors

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77148_401
    • Hide

      Covered by behat and PHPUnit tests.

       

      Steps for manual tests:

      1. Navigate to Question bank
      2. Add one or more questions with some question tags (e.g., Q1 and Q2).
      2. In the Question bank, filter using those tags Q1, Q2
      3. Questions matching the tags should be displayed.
      4. Now, try deleting one or more questions

      Expected result: No error should be thrown and the questions should be deleted successfully.

      Show
      Covered by behat and PHPUnit tests.   Steps for manual tests: 1. Navigate to Question bank 2. Add one or more questions with some question tags (e.g., Q1 and Q2). 2. In the Question bank, filter using those tags Q1, Q2 3. Questions matching the tags should be displayed. 4. Now, try deleting one or more questions Expected result: No error should be thrown and the questions should be deleted successfully.

      In the question bank, filter the questions by tags and then try deleting one or more questions. Observe that errors are thrown.

      Steps to reproduce:
      1. Navigate to Question bank with some questions with question tags or could create one.
      2. In the Question bank, filter using tags.
      3. Questions matching those tags should be displayed.
      4. Now, try deleting one or more questions

      Actual result: Deletion should be successful and no error should be thrown
      Expected result: The below errors are thrown.

      Exception - htmlspecialchars(): Argument #1 ($string) must be of type string, array given
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:
      line 104 of /lib/weblib.php: TypeError thrown
      line 104 of /lib/weblib.php: call to htmlspecialchars()
      line ? of unknownfile: call to s()
      line 112 of /tmp/moodle-cache/2/mustache/1675681331/boost/__Mustache_a3d87a9e8dbdfebc2971be0d53490c77.php: call to call_user_func()
      line 29 of /tmp/moodle-cache/2/mustache/1675681331/boost/__Mustache_a3d87a9e8dbdfebc2971be0d53490c77.php: call to __Mustache_a3d87a9e8dbdfebc2971be0d53490c77->sectionD439dff29f5e8cacbed4e41d7326c83c()
      line 67 of /lib/mustache/src/Mustache/Template.php: call to __Mustache_a3d87a9e8dbdfebc2971be0d53490c77->renderInternal()
      line 204 of /lib/outputrenderers.php: call to Mustache_Template->render()
      line 2143 of /lib/outputrenderers.php: call to renderer_base->render_from_template()
      line 241 of /lib/outputrenderers.php: call to core_renderer->render_single_button()
      line 2098 of /lib/outputrenderers.php: call to renderer_base->render()
      line 134 of /question/bank/deletequestion/delete.php: call to core_renderer->confirm()

            Anupama Sarjoshi Anupama Sarjoshi
            Anupama Sarjoshi Anupama Sarjoshi
            Tim Hunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 47 minutes
                1d 2h 47m

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