Skip to content
Snippets Groups Projects

FIX: name was not properly treated

Closed Henrik tom Wörden requested to merge f-name into dev
1 file
+ 17
0
Compare changes
  • Side-by-side
  • Inline
@@ -640,6 +640,23 @@ def assure_has_property(entity, name, value, to_be_updated=None,
"entity {}".format(value, entity.id))
entity.description = value
if to_be_updated is None:
get_ids_for_entities_with_names([entity])
guard.safe_update(entity, unique=False)
else:
to_be_updated.append(entity)
return
elif name.lower() == "name":
if entity.name == value:
return
else:
logger.debug("UPDATE: Setting name of entity {}: {}".format(
entity.id, value))
entity.name = value
if to_be_updated is None:
get_ids_for_entities_with_names([entity])
Loading