Fix #1207 Fix export button

This commit is contained in:
Nicolas Le Goff
2013-06-17 18:48:26 +02:00
parent 4e3496447a
commit 93ec7e702c
2 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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" />