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);
|
$out = \format::arr_to_csv($buffer);
|
||||||
|
|
||||||
$headers = array(
|
$response = new Response($out, 200, array(
|
||||||
'Content-type' => 'text/csv'
|
'Content-type' => 'text/csv',
|
||||||
, 'Content-Disposition' => 'attachment; filename=export.csv'
|
'Content-Disposition' => 'attachment; filename=export.csv',
|
||||||
);
|
));
|
||||||
$response = new Response($out, 200, $headers);
|
|
||||||
$response->setCharset('UTF-8');
|
$response->setCharset('UTF-8');
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
|||||||
@@ -228,7 +228,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</form>
|
</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 %}
|
{% if parm.base_id is not empty %}
|
||||||
{% for base_id in parm.base_id %}
|
{% for base_id in parm.base_id %}
|
||||||
<input name="base_id[]" value="{{base_id}}" type="hidden" />
|
<input name="base_id[]" value="{{base_id}}" type="hidden" />
|
||||||
|
|||||||
Reference in New Issue
Block a user