Skip to content

Commit

Permalink
Fix - Value not export in single export
Browse files Browse the repository at this point in the history
  • Loading branch information
MILAN88888 committed Sep 16, 2024
1 parent 64abf0c commit b31e02b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/export/class-evf-entry-csv-exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ protected function generate_row_data( $entry ) {
$column_type = $this->get_entry_type( $column_id, $entry );
if ( is_array( $value ) && isset( $fields[ $column_id ], $fields[ $column_id ]['type'] ) && in_array( $fields[ $column_id ]['type'], array( 'likert' ), true ) ) {
foreach ( $value as $key => $val ) {
$key = $key + 1;

Check failure on line 414 in includes/export/class-evf-entry-csv-exporter.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Increment operators should be used where possible; found "$key = $key + 1;" but expected "++$key"
$col_row_key = "$column_id-likert-$key";
$row[ $col_row_key ] = $val;
}
Expand Down

0 comments on commit b31e02b

Please sign in to comment.