Skip to content

Commit d123497

Browse files
author
Chris Gårdenberg
committed
fix: Fetch AnswerId for checkbox questions the correct way
1 parent 1815d00 commit d123497

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/edu-question-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function edu_render_checkbox_question( $question, $multiple, $suffix ) {
6363
echo ' onchange="eduBookingView.UpdatePrice();"';
6464
if ( $multiple ) {
6565
echo ' data-replace="name|index"';
66-
echo ' data-name-template="question_' . esc_attr( $question['AnswerId'] . '_check' . ( '' !== $suffix ? '-' . $suffix : '' ) . '_{{index}}' ) . '"';
66+
echo ' data-name-template="question_' . esc_attr( $q['AnswerId'] . '_check' . ( '' !== $suffix ? '-' . $suffix : '' ) . '_{{index}}' ) . '"';
6767
}
6868
echo ' name="question_' . esc_attr( $q['AnswerId'] . '_check' . ( '' !== $suffix ? '-' . $suffix : '' ) . ( $multiple ? ( 'contact' === $suffix ? '' : '_-1' ) : '' ) ) . '"' . ( $question['Mandatory'] ? ' data-required="true"' : '' ) . ' value="' . esc_attr( $q['AnswerId'] ) . '" /> ';
6969
echo esc_html( wp_strip_all_tags( $q['AnswerText'] ) );

0 commit comments

Comments
 (0)