Skip to content

Commit 7fd0d22

Browse files
lukstbitmikehardy
authored andcommitted
Fix notetype field not being used as sort field
The code registered the field correctly to be a sort field but it didn't save this change. Added a call to save().
1 parent 3010482 commit 7fd0d22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/ModelFieldEditor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ class ModelFieldEditor : AnkiActivity(), LocaleSelectionDialogHandler {
434434
withCol {
435435
Timber.d("doInBackgroundChangeSortField")
436436
notetypes.setSortIndex(notetype, idx)
437+
notetypes.save(notetype)
437438
}
438439
}
439440
initialize()

0 commit comments

Comments
 (0)