I just changed the name of a deck in AnkiDroid and now it’s from deck:Default::Cramming to "deck:Default::Medicine::Text Interpretation", but the notes are still in the Cramming deck, is this a bug? Probably I can fix it, but I will keep it that way and post it here in case it is an unknown bug.
(on AnkiDroid) I holded the deck name, clicked in “search cards” (translated to english), then I clicked on the note, clicked at the arrow to change the deck and then I changed the deck in the note’s edition screen.
My assumption is that the (2) indicates that the cards made from the note are distributed over 2 decks. Which leaves the question where this new Default::Cramming comes from and why it has two cards while their siblings are in different decks.
If you rename a deck, the cards simply move with it (as they are referring to the deck ID, not to the deck name). But what sorata suggested, a deck override on the card template, also works using the deck ID, so if you rename the deck, the override will still find it, should not recreate the old one. Similar if those cards were borrowed by a filtered deck, they remember their original deck by ID, not by name.
So… very confusing indeed. It’s possible that the name is used somewhere and doesn’t get updated, I just haven’t managed to trigger such situation.
If you had a way to reliably recreate that effect, that would be great.
Is there anything special about those two cards that are found in the deck? Like did you create/edit them after the rename?
Hi, thanks for the reply and sorry for taking last so long to respond. No, there’s nothing special on those cards. I guess I discovered what’s going on. It’s because the browser options on AnkiDroid was setted to Toggle Notes instead of Toggle Cards.
Create 2 decks, Test 1 and Test 2
Create a cloze note e.g. {{c1::Hello}} {{c2::World}}! in the Test 1 deck
Go to the Card Browser on AnkiDroid, click on the 3 dots, click on Options, and set Toggle Notes
Search for Hello World! on the search bar.
If you notice, when you click in the arrow and change Sort Field to Question, only one card will appear. Now click on the note/card and change the deck from Test 1 to Test 2.
Now, if you go back to the main screen or you go back to the Card Browser and set Toggle Cards again, you’ll see that only one card changed deck.
Conclusion:
When Toggle Notes is setted on the card browser on AnkiDroid, only the first card will appear, and only the first card will change decks if you do this at the browser’s screen.
When you change the deck on AnkiDroid with Toggle Notes activated, that (1) and (2) thing will appear on Anki Desktop when you try to see the note’s deck on Anki Desktop’s browser.
So the issue was because I was using Toggle Notes and not Toggle Cards when I tried to edit the note to change its deck, because I thought it would change all cards of that note to another deck, just like happens in Anki Desktop when I do that (I sort by notes and not by cards in Desktop too and in it it works fine).