Sort field change without field change should mark schema modified
Closes #1789
This commit is contained in:
parent
0b2a226dc8
commit
51a0641bba
@ -69,6 +69,7 @@ impl Collection {
|
||||
if !ords_changed(&ords, previous_field_count) {
|
||||
if nt.config.sort_field_idx != previous_sort_idx {
|
||||
// only need to update sort field
|
||||
self.set_schema_modified()?;
|
||||
let nids = self.search_notes_unordered(nt.id)?;
|
||||
for nid in nids {
|
||||
let mut note = self.storage.get_note(nid)?.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user