Problem showing only specific number of questions
-
A month or so ago we noticed that any of our quizzes that made use of the ‘Show only a specific number of questions’ option stopped working somewhat, it would always show the first 20 questions by ID. We have several 1000 question set quizzes that we like to display 20 random questions at a time and other similar situations but none with such large questions sets. Not sure what would have caused it other than a wp upgrade.
I found a workaround by simply returning all questions from the fetch() in the WpProQuiz_Model_QuestionMapper and then randomizing and returning only the number of questions I wanted in the WpProQuiz_Controller_Front and WpProQuiz_Controller_Preview showAction() methods. This worked until a couple days ago. We did upgrade to wp-pro-quiz .31 last week, but I was certain I was seeing desired behavior. But now there seems to be no limiting of the questions. Even though my quizzes are setup to display 20 random questions the quizzes get loaded with all questions no matter what.
- The topic ‘Problem showing only specific number of questions’ is closed to new replies.