Commit 78ec9835 authored by Sebastien Robin's avatar Sebastien Robin

the worklow history must be initialized with a persistent mapping !!

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11471 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e51f84fb
......@@ -41,6 +41,7 @@ from email import Encoders
from AccessControl import ClassSecurityInfo
from AccessControl.PermissionMapping import setPermissionMapping
from Products.ERP5Type import Permissions
from Globals import InitializeClass, DTMLFile, PersistentMapping
import pickle
import string
from xml.dom.ext import PrettyPrint
......@@ -696,7 +697,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
user_role_list = map(lambda x:x[0],object.get_local_roles())
object.manage_delLocalRoles(user_role_list)
if hasattr(object,'workflow_history'):
object.workflow_history = {}
object.workflow_history = PersistentMapping()
if xml.nodeName.find('xupdate')>= 0:
xml = self.getElementNodeList(xml)[0]
for subnode in self.getElementNodeList(xml):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment