Bug report - Notes aren't in the deck where they supposed to be

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.



That changed the deck but it didn’t change before?

Do you have deck override on for any of the card types? (remember, it’s the cards that are in the deck not the notes). Also, the version number?

2 Likes

That changed the deck but it didn’t change before?

I don’t get it

Do you have deck override on for any of the card types?

I don’t know how to check it. I never used the “deck override” function before.

(remember, it’s the cards that are in the deck not the notes)

Yeah, indeed, the notes are in the deck (2) and the cards are still in the “Cramming” deck


btw the other notes are in their correct decks

Also, the version number?

Desktop: Version ⁨24.06.3 (d678e393)⁩
AnkiDroid: 2. 18. 4
24 jun 2024
(anki 24. 04. 1 / ccd9ca1a)

Notes are not in decks, only cards are in decks.

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?

2 Likes

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.

  1. Create 2 decks, Test 1 and Test 2
  2. Create a cloze note e.g. {{c1::Hello}} {{c2::World}}! in the Test 1 deck
  3. Go to the Card Browser on AnkiDroid, click on the 3 dots, click on Options, and set Toggle Notes
  4. Search for Hello World! on the search bar.
  5. 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.
  6. 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:

  1. 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.
  2. 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).

I created an issue on GitHub, it will get solved in there
[BUG]: Card Browser - Toggle Notes → Changing deck in Note Editor only modifies one card · Issue #17415 · ankidroid/Anki-Android

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.