mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Reset original id when cloning notetypes (#3089)
This commit is contained in:
parent
eee02d5e8c
commit
36287888cc
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue