Commit 46efa3cf authored by Yusei Tahara's avatar Yusei Tahara

Clear field value cache, when field is renamed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca69d5f1
......@@ -152,6 +152,7 @@ class FieldValueInteractor(Interactor):
"""
from Products.Formulator.Field import ZMIField
from Products.ERP5Form.ProxyField import ProxyField
from Products.Formulator.Form import ZMIForm
self.on(ZMIField.manage_edit).doAfter(self.purgeFieldValueCache)
self.on(ZMIField.manage_edit_xmlrpc).doAfter(self.purgeFieldValueCache)
self.on(ZMIField.manage_tales).doAfter(self.purgeFieldValueCache)
......@@ -159,6 +160,7 @@ class FieldValueInteractor(Interactor):
self.on(ProxyField.manage_edit).doAfter(self.purgeFieldValueCache)
self.on(ProxyField.manage_edit_target).doAfter(self.purgeFieldValueCache)
self.on(ProxyField.manage_tales).doAfter(self.purgeFieldValueCache)
self.on(ZMIForm.manage_renameObject).doAfter(self.purgeFieldValueCache)
def uninstall(self):
"""
......
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