diff --git a/forms/gridfield/GridField.php b/forms/gridfield/GridField.php index f244c813f..2f4f3a3af 100644 --- a/forms/gridfield/GridField.php +++ b/forms/gridfield/GridField.php @@ -840,7 +840,7 @@ class GridField_FormAction extends FormAction { 'args' => $this->args, ); - $id = preg_replace('/[^\w]+/', '_', uniqid('', true)); + $id = md5(serialize($state)); Session::set($id, $state); $actionData['StateID'] = $id;