From b7ec7623b26b758a78f6d866a17786ed6003bf4a Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Wed, 23 Apr 2025 06:02:30 +0200 Subject: [PATCH] feat: Reset SentFurigana field on SentenceListeningNote creation --- src/Entity/SentenceListeningNote.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entity/SentenceListeningNote.php b/src/Entity/SentenceListeningNote.php index ab2ce5d..d9da009 100644 --- a/src/Entity/SentenceListeningNote.php +++ b/src/Entity/SentenceListeningNote.php @@ -20,6 +20,7 @@ class SentenceListeningNote extends Note $this->fields['VocabKanji'] = $term->getKanji(); $this->fields['VocabFurigana'] = $term->getReading(); $this->fields['VocabDef'] = $term->toAnkiVocabDef(); + $this->fields['SentFurigana'] = ''; // We don't want to keep this $this->fields['SentKanji'] = $this->stringHighlight( $this->fields['SentKanji'], $term->getKanji(),