Commit 9eda82d9 authored by Xiaowu Zhang's avatar Xiaowu Zhang

BusinessTemplate: _setData also set size attribute

parent 78e60a3e
......@@ -1510,6 +1510,9 @@ class ObjectTemplateItem(BaseTemplateItem):
assert container.meta_type in ('ERP5 Cache Factory',
'ERP5 Cache Bag')
container.getParentValue().updateCache()
elif obj.__class__.__name__ in ('File', 'Image'):
if "data" in obj.__dict__:
File._setData.__func__(obj, obj.data)
elif (container.meta_type == 'CMF Skins Tool') and \
(old_obj is not None):
# Keep compatibility with previous export format of
......
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