summaryrefslogtreecommitdiff
path: root/resources/views/modules/statistics-chart
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-11-03 19:18:23 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-11-03 19:18:23 +0000
commit3aa29b9734fdb6fae278f43a276b231c61e8112b (patch)
tree27df8770e09950127ec76df68088fa89c1f1ab4c /resources/views/modules/statistics-chart
parentf95e04806a44c636814f9cdd94794dc3cc74ea7e (diff)
downloadwebtrees-3aa29b9734fdb6fae278f43a276b231c61e8112b.tar.gz
webtrees-3aa29b9734fdb6fae278f43a276b231c61e8112b.tar.bz2
webtrees-3aa29b9734fdb6fae278f43a276b231c61e8112b.zip
Use POST for custom statistics charts
Diffstat (limited to 'resources/views/modules/statistics-chart')
-rw-r--r--resources/views/modules/statistics-chart/custom.phtml6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/views/modules/statistics-chart/custom.phtml b/resources/views/modules/statistics-chart/custom.phtml
index d687477a43..84b479ea95 100644
--- a/resources/views/modules/statistics-chart/custom.phtml
+++ b/resources/views/modules/statistics-chart/custom.phtml
@@ -10,7 +10,9 @@ use Fisharebest\Webtrees\View;
<?= I18N::translate('Create your own chart') ?>
</h4>
- <form method="get" action="<?= e(route('module', ['module' => $module->name(), 'action' => 'CustomChart', 'tree' => $tree->name()])) ?>" id="own-stats-form" class="wt-page-options wt-page-options-statistics">
+ <form method="post" action="<?= e(route('module', ['module' => $module->name(), 'action' => 'CustomChart', 'tree' => $tree->name()])) ?>" id="own-stats-form" class="wt-page-options wt-page-options-statistics">
+ <?= csrf_field() ?>
+
<div class="form-group row">
<div class="col-sm-2 wt-page-options-label">
<?= I18N::translate('Chart type') ?>
@@ -272,7 +274,7 @@ use Fisharebest\Webtrees\View;
function loadCustomChart() {
$("#custom-chart").html("");
var form = $("#own-stats-form");
- jQuery.get(form.attr("action"), form.serialize())
+ jQuery.post(form.attr("action"), form.serialize())
.done(function (data) {
$("#custom-chart").html(data);
})