mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: Payload incorrect data (pass item_group.name)
This commit is contained in:
@@ -205,7 +205,7 @@ def create_item_groups_autocomplete_dict(autocompleter):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for item_group in published_item_groups:
|
for item_group in published_item_groups:
|
||||||
payload = json.dumps({"name": item_group, "route": item_group.route})
|
payload = json.dumps({"name": item_group.name, "route": item_group.route})
|
||||||
autocompleter.add_suggestions(
|
autocompleter.add_suggestions(
|
||||||
Suggestion(
|
Suggestion(
|
||||||
string=item_group.name,
|
string=item_group.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user