ankitects / ankitects/anki

Renaming a field move its content to first field

Ouverte
#1,951 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
30.5k
Forks
3.2k
Merge moyen
2 j 8 h
PR mergées (30 j)
60

Description

Running on fe302a5d1b8ba2b8c398f22c28bdd67357c6f339

How to reproduce:
* Have a note type with fields FIELD1 FIELD2
* Fill FIELD2 with "content 2", leave FIELD1 empty
* Rename FIELD2 to FIELD_2

Expected result:
* First field named FIELD1 has no content,
* Second field named FIELD_2 has content "content 2",

Actual result:
* First field named FIELD1 has content "content 2",
* Second field named FIELD_2 has no content,

Without looking at the code, my assumption is that you use the same behaviour for renaming than for changing note type. Which means that you match field name instead of field position. I really love this change of behavior when it comes to actual change of note type, and it's ideal if you just change field order. But it's clearly not the expected behavior when you rename a field

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.