Skip to content

Commit

Permalink
Fix notetype field not being used as sort field
Browse files Browse the repository at this point in the history
The code registered the field correctly to be a sort field but it
didn't save this change. Added a call to save().
  • Loading branch information
lukstbit committed Sep 23, 2024
1 parent 1493601 commit 5636ca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AnkiDroid/src/main/java/com/ichi2/anki/ModelFieldEditor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ class ModelFieldEditor : AnkiActivity(), LocaleSelectionDialogHandler {
withCol {
Timber.d("doInBackgroundChangeSortField")
notetypes.setSortIndex(notetype, idx)
notetypes.save(notetype)
}
}
initialize()
Expand Down

0 comments on commit 5636ca6

Please sign in to comment.