Fix issue in exporting.

This commit is contained in:
James Cole
2021-06-03 12:08:04 +02:00
parent 021e0a04ac
commit a54f152a34
2 changed files with 5 additions and 4 deletions

View File

@@ -15,9 +15,10 @@
<p> <p>
{{ 'export_data_expl'|_ }} {{ 'export_data_expl'|_ }}
</p> </p>
<ul> <form action="{{ route('export.export') }}" method="post">
<li><i class="fa fa-fw fa-download"></i> <a href="{{ route('export.export') }}" title="{{ 'export_data_all_transactions'|_ }}">{{ 'export_data_all_transactions'|_ }}</a></li> <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
</ul> <button type="submit"><i class="fa fa-fw fa-download"></i> {{ 'export_data_all_transactions'|_ }}</button>
</form>
<p> <p>
{{ 'export_data_advanced_expl'|_ }} {{ 'export_data_advanced_expl'|_ }}
</p> </p>

View File

@@ -538,7 +538,7 @@ Route::group(
// index // index
Route::get('', ['uses' => 'Export\IndexController@index', 'as' => 'index']); Route::get('', ['uses' => 'Export\IndexController@index', 'as' => 'index']);
Route::get('export', ['uses' => 'Export\IndexController@export', 'as' => 'export']); Route::post('export', ['uses' => 'Export\IndexController@export', 'as' => 'export']);
} }
); );
/** /**