fix: Add default score of 1 to Item Group Autocompleter
- If score 0 is inserted into suggestions, RS does not consider that suggestion
This commit is contained in:
parent
97e3a855f7
commit
7ef1ccbe84
@ -209,7 +209,7 @@ def create_item_groups_autocomplete_dict(autocompleter):
|
|||||||
autocompleter.add_suggestions(
|
autocompleter.add_suggestions(
|
||||||
Suggestion(
|
Suggestion(
|
||||||
string=item_group.name,
|
string=item_group.name,
|
||||||
score=item_group.weightage,
|
score=frappe.utils.flt(item_group.weightage) or 1.0,
|
||||||
payload=payload, # additional info that can be retrieved later
|
payload=payload, # additional info that can be retrieved later
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user