Fix move to existing list: sync_queue list_id update + PickList filter
- update_list_id now also updates sync_queue table - PickList filters out local-only UUID lists (only shows server IDs)
This commit is contained in:
@@ -1120,6 +1120,7 @@ impl App {
|
|||||||
}
|
}
|
||||||
6 => {
|
6 => {
|
||||||
self.popup_list_indices = self.lists.iter()
|
self.popup_list_indices = self.lists.iter()
|
||||||
|
.filter(|l| !l.id.contains('-'))
|
||||||
.map(|l| (l.title.clone(), l.id.clone()))
|
.map(|l| (l.title.clone(), l.id.clone()))
|
||||||
.collect();
|
.collect();
|
||||||
self.popup_list_selected = 0;
|
self.popup_list_selected = 0;
|
||||||
|
|||||||
@@ -336,6 +336,10 @@ impl Db {
|
|||||||
"UPDATE tasks SET list_id = ?1 WHERE list_id = ?2",
|
"UPDATE tasks SET list_id = ?1 WHERE list_id = ?2",
|
||||||
params![new_id, old_id],
|
params![new_id, old_id],
|
||||||
)?;
|
)?;
|
||||||
|
conn.execute(
|
||||||
|
"UPDATE sync_queue SET list_id = ?1 WHERE list_id = ?2",
|
||||||
|
params![new_id, old_id],
|
||||||
|
)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user