FIX Apply urldecode to querystring vars

This commit is contained in:
Steve Boyd 2021-01-12 12:40:52 +13:00
parent 82b5059265
commit 7207c6bca0
1 changed files with 5 additions and 1 deletions

View File

@ -251,7 +251,11 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
$actions = new FieldList();
$form = new Form($this, "EditForm", $fields, $actions);
$form->addExtraClass('panel panel--padded panel--scrollable cms-edit-form cms-panel-padded' . $this->BaseCSSClasses());
$form->loadDataFrom($this->request->getVars());
$vars = $this->request->getVars();
array_walk_recursive($vars, function (&$value) {
$value = urldecode($value);
});
$form->loadDataFrom($vars);
$this->extend('updateEditForm', $form);