mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 17:26:36 -04:00
Fix guid being replaced when updating note
This commit is contained in:
parent
43905902d0
commit
1e17435335
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ impl<'a> Context<'a> {
|
||||||
log: &mut NoteLog,
|
log: &mut NoteLog,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
ctx.note.id = dupe.id;
|
ctx.note.id = dupe.id;
|
||||||
|
ctx.note.guid = dupe.guid.clone();
|
||||||
if dupe.equal_fields_and_tags(&ctx.note) {
|
if dupe.equal_fields_and_tags(&ctx.note) {
|
||||||
log.duplicate.push(dupe.into_log_note());
|
log.duplicate.push(dupe.into_log_note());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue