mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Improving CSV genertion
This commit is contained in:
parent
caffa5b30f
commit
3e6c929150
@ -192,7 +192,7 @@ class PersonController extends Controller
|
||||
array(
|
||||
'persons' => $persons,
|
||||
'cf_group' => $this->getCFGroup()));
|
||||
$response->headers->set('Content-Type', 'text/csv');
|
||||
$response->headers->set('Content-Type', 'text/csv; charset=utf-8');
|
||||
$response->headers->set('Content-Disposition', 'attachment; filename="export.csv"');
|
||||
|
||||
return $response;
|
||||
|
@ -13,9 +13,9 @@
|
||||
#}"{{ chill_custom_field_label(customField) }}"{% if not loop.last %},{% endif %}{#
|
||||
#}{% endfor %}{#
|
||||
#}{% endif %}{#
|
||||
#}
|
||||
|
||||
{% for person in persons %}{#
|
||||
#}{{ '\r\n'|raw }}{#
|
||||
#}{% for person in persons %}{#
|
||||
#}{{ person.id }},{#
|
||||
#}"{{ person.firstName|csv_cell }}",{#
|
||||
#}"{{ person.lastName|csv_cell }}",{#
|
||||
@ -55,6 +55,7 @@
|
||||
#}{% endif %}{#
|
||||
#}{% if not loop.last %},{% endif %}{#
|
||||
#}{% endfor %}{#
|
||||
#}{% endif %}
|
||||
#}{% endif %}{#
|
||||
#}{{ '\r\n'|raw }}{#
|
||||
|
||||
{% endfor %}
|
||||
#}{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user