From 6bdd30c19debeafd7d3564299daef1f96d602a32 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 9 Dec 2014 10:38:21 +1300 Subject: [PATCH] BUG Fix gridfield storing duplicate data in session --- forms/gridfield/GridField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;