Skip to content

Commit

Permalink
Merge pull request #2353 from QuizandSurveyMaster/CU-85ztyjp74-random…
Browse files Browse the repository at this point in the history
…-questions-with-manual-pagination

manual pagination random questions
  • Loading branch information
zubairraeen authored Sep 19, 2023
2 parents 06265f0 + abec4c6 commit 9c396d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ public function display_pages( $options, $quiz_data ) {
$animation_effect = isset( $options->quiz_animation ) && '' !== $options->quiz_animation ? ' animated ' . $options->quiz_animation : '';
$enable_pagination_quiz = isset( $options->enable_pagination_quiz ) && 1 == $options->enable_pagination_quiz ? true : false;
if ( ( 1 == $options->randomness_order || 2 == $options->randomness_order ) && is_array( $pages ) ) {
shuffle( $pages );
$pages = QMNPluginHelper::qsm_shuffle_assoc( $pages );
$question_list_array = array();
foreach( $pages as &$question_ids ){
shuffle( $question_ids );
Expand Down

0 comments on commit 9c396d1

Please sign in to comment.