Commit 939f117a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

try to update metadata only when the type is same as before.

parent 0efd04c4
......@@ -244,7 +244,8 @@ class UnoConverter(object):
# BBB: old ERP5 code sends Keywords as a string
# separated by a whitespace.
value = tuple(value.split(' '))
setattr(container, prop, value)
if isinstance(value, type(current_value)):
setattr(container, prop, value)
break
else:
new_properties.append([prop, value])
......
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