diff --git a/forms/gridfield/GridField.php b/forms/gridfield/GridField.php index 4c82f4e78..43bfc9b02 100644 --- a/forms/gridfield/GridField.php +++ b/forms/gridfield/GridField.php @@ -840,7 +840,8 @@ class GridField_FormAction extends FormAction { 'args' => $this->args, ); - $id = substr(md5(serialize($state)), 0, 8); + // Ensure $id doesn't contain only numeric characters + $id = 'gf_'.substr(md5(serialize($state)), 0, 8); Session::set($id, $state); $actionData['StateID'] = $id;