Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Duplicate Selected Notes] Duplicated note has different note type than source #49

Open
4 tasks done
pinnerup opened this issue Jun 18, 2018 · 4 comments · May be fixed by #136
Open
4 tasks done

[Duplicate Selected Notes] Duplicated note has different note type than source #49

pinnerup opened this issue Jun 18, 2018 · 4 comments · May be fixed by #136
Assignees
Labels
bug Something isn't working

Comments

@pinnerup
Copy link

pinnerup commented Jun 18, 2018

Which add-on is affected?

Duplicate Selected Notes

Prerequisite checklist

  • In case of a bug: Have you tried restarting Anki?
  • Are you running the latest version of the add-on? Have you redownloaded the add-on from AnkiWeb to make sure?
  • Did you check the add-on description on AnkiWeb for known issues?
  • 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?

  1. Open the card browser
  2. 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

@pinnerup pinnerup changed the title [Duplicate Selected Notes] Duplicated note has different note type [Duplicate Selected Notes] Duplicated note has different note type than source Jun 18, 2018
@GHub-PJ
Copy link

GHub-PJ commented Oct 2, 2018

Same problem today Oct, 2nd, 2018 with Anki Version 2.0.51 Qt 4.8.4 PyQt 4.10 System Windows 10

@jnslmk
Copy link

jnslmk commented Nov 6, 2018

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

@glutanimate
Copy link
Owner

Thanks for the reports, guys, and sorry for the delayed response. I'll try to look into this soon.

@glutanimate glutanimate self-assigned this Apr 18, 2019
@glutanimate glutanimate added the bug Something isn't working label Apr 18, 2019
@JiaChen-Zeng
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants