File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
AnkiDroid/src/main/java/com/ichi2/anki Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1261,7 +1261,10 @@ class NoteEditor :
12611261 // changed did? this has to be done first as remFromDyn() involves a direct write to the database
12621262 if (currentEditedCard != null && currentEditedCard!! .currentDeckId() != deckId) {
12631263 reloadRequired = true
1264- undoableOp { setDeck(listOf (currentEditedCard!! .id), deckId) }
1264+ // Obtain all card IDs for the current note
1265+ val allCardIds = editorNote!! .cardIds(getColUnsafe)
1266+ // Update the deck for every card of that note
1267+ undoableOp { setDeck(allCardIds, deckId) }
12651268 // refresh the card object to reflect the database changes from above
12661269 currentEditedCard!! .load(getColUnsafe)
12671270 // also reload the note object
You can’t perform that action at this time.
0 commit comments