anki-addons-misc
anki-addons-misc copied to clipboard
[Duplicate Selected Notes] Duplicated note has different note type than source
Which add-on is affected?
Duplicate Selected Notes
Prerequisite checklist
- [x] In case of a bug: Have you tried restarting Anki?
- [x] Are you running the latest version of the add-on? Have you redownloaded the add-on from AnkiWeb to make sure?
- [x] Did you check the add-on description on AnkiWeb for known issues?
- [x] Did you perform a cursory search through existing issue reports?
What is the problem/feature you would like to see fixed/implemented?
The newly duplicated note should belong to the same note type as the source.
How can we reproduce the problem?
- Open the card browser
- Click a note and select [Edit | Create Duplicate]
Expected behavior: [ What you expected to happen ] A duplicate note is created with the same field content, deck and note type.
Actual behavior: [ What actually happened ] If the last active note type has the same number of fields as the note type of the duplication source, the newly duplicated note receives the last active note type, rather than the note type of the source note.
Consecutive invocations of "Create Duplicate" on notes with varying number of fields causes Anki to crash.
Reproducible?: [ Can you reliably reproduce the issue by following the steps above? ] Yes.
Version information
Anki Version 2.1.0beta41 Qt 5.9.2 PyQt 5.9
System Linux Ubuntu 18.04
Same problem today Oct, 2nd, 2018 with Anki Version 2.0.51 Qt 4.8.4 PyQt 4.10 System Windows 10
Can confirm the problem. Even if the entry fields do not match, the addon creates notes with the note type last selected in the Add dialog used to create new notes.
Anki Version 2.1.5 Qt 5.9.2 PyQt 5.9 Kubuntu 18.10
Thanks for the reports, guys, and sorry for the delayed response. I'll try to look into this soon.
I encountered the same problem.
Anki 2.1.14 (7b93e985) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1