Note ID and Card ID are mixed up

In the picture, you can see a note ID, and card ID, however they are mixed up.
The ID shown next to card ID is actually the note ID, which I can confirm in the browser typing “nid:theid”, or “cid:theid”.

I am on Anki version Version 2.1.28 (7d8818f8), on macOS 10.15.5 (19F101)

4 Likes

I can confirm the issue.

1 Like

I could pinpoint the issue to these two lines of code:

stats.push((i18n.tr(TR::CardStatsNoteId).into(), cs.cid.0.to_string()));
stats.push((i18n.tr(TR::CardStatsCardId).into(), cs.nid.0.to_string()));
5 Likes

Thanks for the report; fixed in the stable 2.1.29 release.

1 Like