mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-05 08:03:18 +00:00
Bug fix for list view filtering (#762)
This commit is contained in:
parent
ae457e8235
commit
e38c51e947
3 changed files with 23 additions and 2 deletions
|
|
@ -61,6 +61,14 @@ abstract class PaginatedSearchState<T extends PaginatedSearchWidget>
|
|||
backup,
|
||||
);
|
||||
|
||||
if (result == "null") {
|
||||
if (tristate) {
|
||||
return null;
|
||||
} else {
|
||||
return backup;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +77,7 @@ abstract class PaginatedSearchState<T extends PaginatedSearchWidget>
|
|||
final String settings_key = "${prefix}filter_${key}";
|
||||
|
||||
if (value == null) {
|
||||
await InvenTreeSettingsManager().removeValue(settings_key);
|
||||
await InvenTreeSettingsManager().setValue(settings_key, "null");
|
||||
} else {
|
||||
await InvenTreeSettingsManager().setValue(settings_key, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue