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 authored and mikehardy committed Sep 28, 2024
1 parent 3010482 commit 7fd0d22
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 7fd0d22

Please sign in to comment.