Reset original id when cloning notetypes (#3089)

This commit is contained in:
RumovZ 2024-03-24 09:18:59 +01:00 committed by GitHub
parent 4021e67dc8
commit c38cb39ebf

View file

@ -259,6 +259,7 @@ class ModelManager(DeprecatedNamesMixin):
self.col.tr.notetypes_copy(val=cloned["name"])
)
cloned["id"] = 0
cloned["originalId"] = None
if add:
self.add(cloned)
return cloned