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

Warning on moving questions when usetags disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8.4
    • 3.5, 3.5.1, 3.8.3, 3.9
    • Questions, Tags
    • MOODLE_35_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE
    • MDL-63284-master
    • Hide
      1. Login as admin
      2. Ensure that you've "debug" set to developer level and also "debugdisplay" = true (or alternatively look to web server logs).
      3. Navigate to "Administration -> Advanced features" and turn off "Enable tags functionality".
      4. Navigation to any question bank in any course.
      5. Create a couple of question categories (A and B) and a question of any type to category A.
      6. Move the question to category B.
      7. Verify that no errors (of type "Notice: Undefined offset") are shown on screen or the web server logs and the question is effectively moved to category B.
      Show
      Login as admin Ensure that you've "debug" set to developer level and also "debugdisplay" = true (or alternatively look to web server logs). Navigate to "Administration -> Advanced features" and turn off "Enable tags functionality". Navigation to any question bank in any course. Create a couple of question categories (A and B) and a question of any type to category A. Move the question to category B. Verify that no errors (of type "Notice: Undefined offset") are shown on screen or the web server logs and the question is effectively moved to category B.

      When the Tag functionality (global setting usetags) is disabled, if you try to move a question from a category to another, the following warning is shown:

      Notice: Undefined offset: 7030 in /var/www/.../moodle/lib/questionlib.php on line 584 
      Warning: Invalid argument supplied for foreach() in /var/www/.../moodle/lib/questionlib.php on line 586

       

            Clyxz Martin Hanusch
            kemmotar Giorgio Riva
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m

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