The search string when sorting should always be a string
If the search string is None then the original search_value is set back and the result will be a mixed sorted list. issue4514 review8881003
This commit is contained in:
1 parent
aba459b0ed
commit
4cab4b63bd
1 file changed
+1
-1
@@ -546,7 +546,7 @@ class ViewTree(View):
|
||||
column.arrow.hide()
|
||||
model = self.treeview.get_model()
|
||||
unsaved_records = [x for x in model.group if x.id < 0]
|
||||
search_string = self.screen.screen_container.get_text() or None
|
||||
search_string = self.screen.screen_container.get_text() or u''
|
||||
if (self.screen.search_count == len(model)
|
||||
or unsaved_records
|
||||
or self.screen.parent):
|
||||
|
||||
Reference in new issue
Block a user