Use original deck name if card is in filtered deck
https://forums.ankiweb.net/t/inconsistent-read-deck-name-and-seed-from-ctx-will-recognize-the-filtered-deck-as-the-deck-name/29327
This commit is contained in:
parent
bf05fae91e
commit
8f460b2ba9
@ -138,7 +138,7 @@ impl SchedulingContext {
|
|||||||
fn new(col: &mut Collection, card: &Card) -> Result<Self> {
|
fn new(col: &mut Collection, card: &Card) -> Result<Self> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
deck_name: col
|
deck_name: col
|
||||||
.get_deck(card.deck_id)?
|
.get_deck(card.original_or_current_deck_id())?
|
||||||
.or_not_found(card.deck_id)?
|
.or_not_found(card.deck_id)?
|
||||||
.human_name(),
|
.human_name(),
|
||||||
seed: card.review_seed(),
|
seed: card.review_seed(),
|
||||||
|
Loading…
Reference in New Issue
Block a user