1

I have 3 categories with several quizzies in it and i can test 2 of them , they work properly, but when i try to test third one i got this error below:

There are not enough questions in category XX to create the question Random
  1. What should i change to get rid of this problem? Seems to be obvious that a user should not be able to add more random questions than the total number of a category, since that there will not be duplicated questions in the quiz.

  2. Is this is a known bug?

I can't add more questions on the quiz.

Dave
  • 5,108
  • 16
  • 30
  • 40
Sagitarius
  • 348
  • 1
  • 11
  • 36
  • Grammar cleanup and put the error message into a separate block so it would stand out. – Dave Nov 27 '18 at 15:07

1 Answers1

1

It's throwing moodle_exception('notenoughrandomquestions') when questions not available in the category. You can find this exception from below path mod\quiz\locallib.php

Naveen
  • 64
  • 5