update this if condition bucose i answer first quiz reurn all quiz true
-
in this path ( masterstudy-lms-learning-management-system/includes/Repositories/CoursePlayerRepository.php:254 )
if ( ! empty( $sequence ) && is_array( $sequence ) ) {
$bank_args = array(
‘post_type’ => ‘stm-questions’,
‘post__in’ => $sequence[ $question[‘id’] ],
‘posts_per_page’ => -1,
‘orderby’ => ‘post__in’,
);
}
I just answer the first quiz if the condition returns true in all quizzes and Mack Query where all questions id
I change the condition to fix this bug toif ( ! empty( $sequence ) && is_array( $sequence ) && isset($sequence[ $question[‘id’] ] ) && $sequence[ $question[‘id’] ] ) {
- You must be logged in to reply to this topic.