Remove email and comment from enty table they will go to costum values
This commit is contained in:
@@ -15,7 +15,7 @@ header('Content-Type: text/csv; charset=utf-8');
|
||||
header('Content-Disposition: attachment; filename="go-form-' . sanitize_title($form_name) . '-export.csv"');
|
||||
|
||||
$output = fopen('php://output', 'w');
|
||||
fputcsv($output, ['ID', 'First Name', 'Last Name', 'Country', 'Club', 'Rank', 'Rating', 'Email', 'EGD Number', 'Comment', 'Date Added']);
|
||||
fputcsv($output, ['ID', 'First Name', 'Last Name', 'Country', 'Club', 'Rank', 'Rating', 'EGD Number', 'Date Added']);
|
||||
|
||||
foreach ($entries as $e) {
|
||||
global $ranks;
|
||||
@@ -27,9 +27,7 @@ foreach ($entries as $e) {
|
||||
$e->club,
|
||||
$ranks[$e->rank] ?? '',
|
||||
$e->rating,
|
||||
$e->email,
|
||||
$e->egd_number,
|
||||
$e->comment,
|
||||
$e->created_at
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user