Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rreemmii-dev
Copy link
Contributor

Adds a warning if there is a cloze in the "back extra" field and the "text" field is left empty.
The warning is the same as when the "text" field has content.

Fixes #3909

@dae
Copy link
Member

dae commented Apr 11, 2025

For the user to be able to add a card, they need both:

  • a non-blank first field
  • clozes only in cloze fields

Your PR breaks the first check, allowing empty cards to be added.

@rreemmii-dev
Copy link
Contributor Author

I fixed it!

@dae
Copy link
Member

dae commented Apr 13, 2025

Thank you!

@dae dae merged commit 1fa99c9 into ankitects:main Apr 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloze note type shouldn't warin if there is a cloze in "back extra" when "text" is empty

3 participants