@@ 481-485 (lines=5) @@ | ||
478 | }else{ |
|
479 | $question_label = sprintf( __( 'Question $s', 'event_espresso' ), $answer_row[ 'Answer.QST_ID' ] ); |
|
480 | } |
|
481 | if( isset( $answer_row[ 'Question.QST_type'] ) && $answer_row[ 'Question.QST_type' ] == EEM_Question::QST_type_state ) { |
|
482 | $reg_csv_array[ $question_label ] = EEM_State::instance()->get_state_name_by_ID( $answer_row[ 'Answer.ANS_value' ] ); |
|
483 | } else { |
|
484 | $reg_csv_array[ $question_label ] = $this->_prepare_value_from_db_for_display( EEM_Answer::instance(), 'ANS_value', $answer_row[ 'Answer.ANS_value' ] ); |
|
485 | } |
|
486 | } |
|
487 | $registrations_csv_ready_array[] = apply_filters( 'FHEE__EE_Export__report_registrations__reg_csv_array', $reg_csv_array, $reg_row ); |
|
488 | } |
@@ 377-386 (lines=10) @@ | ||
374 | } else { |
|
375 | $question_label = sprintf(__('Question $s', 'event_espresso'), $answer_row['Answer.QST_ID']); |
|
376 | } |
|
377 | if (isset($answer_row['Question.QST_type']) |
|
378 | && $answer_row['Question.QST_type'] == \EEM_Question::QST_type_state |
|
379 | ) { |
|
380 | $reg_csv_array[$question_label] = \EEM_State::instance() |
|
381 | ->get_state_name_by_ID($answer_row['Answer.ANS_value']); |
|
382 | } else { |
|
383 | //this isn't for html, so don't show html entities |
|
384 | $reg_csv_array[$question_label] = html_entity_decode(\EEH_Export::prepare_value_from_db_for_display(\EEM_Answer::instance(), |
|
385 | 'ANS_value', $answer_row['Answer.ANS_value'])); |
|
386 | } |
|
387 | } |
|
388 | $registrations_csv_ready_array[] = apply_filters('FHEE__EE_Export__report_registrations__reg_csv_array', |
|
389 | $reg_csv_array, $reg_row); |