mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 10:45:29 +00:00
API_Form: Allow customizable icon
- Also fixes for API search
This commit is contained in:
@ -71,7 +71,7 @@ class PartSearchDelegate extends SearchDelegate<InvenTreePart?> {
|
||||
|
||||
_filters["cascade"] = "true";
|
||||
|
||||
final results = await InvenTreePart().search(context, query, filters: _filters);
|
||||
final results = await InvenTreePart().search(query, filters: _filters);
|
||||
|
||||
partResults.clear();
|
||||
|
||||
@ -260,8 +260,7 @@ class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem?> {
|
||||
// Enable cascading part search by default
|
||||
_filters["cascade"] = "true";
|
||||
|
||||
final results = await InvenTreeStockItem().search(
|
||||
context, query, filters: _filters);
|
||||
final results = await InvenTreeStockItem().search(query, filters: _filters);
|
||||
|
||||
itemResults.clear();
|
||||
|
||||
|
@ -327,13 +327,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
},
|
||||
onFind: (String filter) async {
|
||||
|
||||
Map<String, String> _filters = {
|
||||
"search": filter,
|
||||
"offset": "0",
|
||||
"limit": "25"
|
||||
};
|
||||
|
||||
final List<InvenTreeModel> results = await InvenTreeStockLocation().list(filters: _filters);
|
||||
final results = await InvenTreeStockLocation().search(filter);
|
||||
|
||||
List<dynamic> items = [];
|
||||
|
||||
|
Reference in New Issue
Block a user