mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Sort field change without field change should mark schema modified
Closes #1789
This commit is contained in:
parent
0b2a226dc8
commit
51a0641bba
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ impl Collection {
|
||||||
if !ords_changed(&ords, previous_field_count) {
|
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
|
// only need to update sort field
|
||||||
|
self.set_schema_modified()?;
|
||||||
let nids = self.search_notes_unordered(nt.id)?;
|
let nids = self.search_notes_unordered(nt.id)?;
|
||||||
for nid in nids {
|
for nid in nids {
|
||||||
let mut note = self.storage.get_note(nid)?.unwrap();
|
let mut note = self.storage.get_note(nid)?.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue