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