Bug: Superfluous field in CSV export
-
Hi,
I noticed that every row in exported CSV file with inbound messages contains a superfluous, empty field just before the last field with date.
I found that the problem is in
admin\admin.phpfile (from line 586). First,$labelsfor exported messages are retrieved, then subsequently an extra label for additional “Date” column is added to the$labelsarray. Then in the loop this$labelsarray is used to fetch CSV columns, but obviously there is no column with “Date” in message fields, so an empty column is echoed.My fix is to replace:
$labels[] = __( 'Date', 'flamingo' ); echo flamingo_csv_row( $labels );
With:
echo flamingo_csv_row( array_merge( $labels, array( __( 'Date', 'flamingo' ) ) ) );Cheers,
Česlav
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Bug: Superfluous field in CSV export’ is closed to new replies.