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

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

    XMLWordPrintable

Details

    Description

      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()

      Attachments

        Issue Links

          Activity

            People

              Anupama Sarjoshi Anupama Sarjoshi
              Anupama Sarjoshi Anupama Sarjoshi
              Tim Hunt Tim Hunt
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              CiBoT CiBoT
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

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