mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix sort field check on save
This commit is contained in:
parent
5ff83fad08
commit
996d408695
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ impl Collection {
|
|||
) -> Result<()> {
|
||||
let ords: Vec<_> = nt.fields.iter().map(|f| f.ord).collect();
|
||||
if !ords_changed(&ords, previous_field_count) {
|
||||
if nt.config.sort_field_idx == previous_sort_idx {
|
||||
if nt.config.sort_field_idx != previous_sort_idx {
|
||||
// only need to update sort field
|
||||
let nids = self.search_notes_only(&format!("mid:{}", nt.id))?;
|
||||
for nid in nids {
|
||||
|
|
Loading…
Reference in a new issue