Commit 1691e3b9 authored by Antoine Millet's avatar Antoine Millet
Browse files

[bug#3903] Fixed edge effects in _update_object function.

parent c9578c5a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -182,15 +182,20 @@ class ObjectsDB(object):
            client_id = parent['id']

        if tags is not None:
            tags = set(tags)
            tags -= set(user_tags)

        if tags_novalue is not None:
            tags_novalue = set(tags_novalue)
            tags_novalue -= set(user_tags)

        try:
            client = self._server.get_connection(client_id)
        except KeyError:
            pass
            # The client is not connected, we need to keep only unttlised tags:
            for name in obj.keys():
                if (obj['id'], name) in self._ttls:
                    del obj[name]
        else:
            # The client is connected:
            if parent is None: