From f6938115cae79b36c6c6498dc80e6af1ef2c990c Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 14 Nov 2007 22:57:01 +0000
Subject: [PATCH] typo.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17600 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/SelectionTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py
index ba319a4d6d..616ee586b8 100644
--- a/product/ERP5Form/SelectionTool.py
+++ b/product/ERP5Form/SelectionTool.py
@@ -1423,7 +1423,7 @@ class SelectionPersistentMapping(PersistentMapping):
     oldState = newState
     # dict returned by PersistentMapping.__getstate__ contains the data
     # under '_container' key in zope 2.7 and 'data' in zope 2.8
-    if 'data' in state:
+    if 'data' in oldState:
       oldState['data'].update(savedState['data'])
     else:
       oldState['_container'].update(savedState['_container'])
-- 
2.30.9