mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Fix #1207 Fix export button
This commit is contained in:
@@ -329,11 +329,11 @@ class Users implements ControllerProviderInterface
|
||||
|
||||
$out = \format::arr_to_csv($buffer);
|
||||
|
||||
$headers = array(
|
||||
'Content-type' => 'text/csv'
|
||||
, 'Content-Disposition' => 'attachment; filename=export.csv'
|
||||
);
|
||||
$response = new Response($out, 200, $headers);
|
||||
$response = new Response($out, 200, array(
|
||||
'Content-type' => 'text/csv',
|
||||
'Content-Disposition' => 'attachment; filename=export.csv',
|
||||
));
|
||||
|
||||
$response->setCharset('UTF-8');
|
||||
|
||||
return $response;
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<form target="_blank" method="post" action="{{ path('admin_users_export_csv') }}">
|
||||
<form class="no-ajax" method="post" action="{{ path('admin_users_export_csv') }}">
|
||||
{% if parm.base_id is not empty %}
|
||||
{% for base_id in parm.base_id %}
|
||||
<input name="base_id[]" value="{{base_id}}" type="hidden" />
|
||||
|
||||
Reference in New Issue
Block a user