mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -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,
|
||||
) -> Result<()> {
|
||||
ctx.note.id = dupe.id;
|
||||
ctx.note.guid = dupe.guid.clone();
|
||||
if dupe.equal_fields_and_tags(&ctx.note) {
|
||||
log.duplicate.push(dupe.into_log_note());
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue