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 eee02d5e8c
commit 36287888cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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