Skip to content

Commit

Permalink
FIX Apply urldecode to querystring vars
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 11, 2021
1 parent 82b5059 commit 7207c6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/ReportAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ public function getEditForm($id = null, $fields = null)
$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);

Expand Down

0 comments on commit 7207c6b

Please sign in to comment.