mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
fix: Exclude unpublished items while fetching items from other item groups (#29211)
This commit is contained in:
@@ -197,7 +197,10 @@ class ProductQuery:
|
|||||||
website_item_groups = frappe.db.get_all(
|
website_item_groups = frappe.db.get_all(
|
||||||
"Website Item",
|
"Website Item",
|
||||||
fields=self.fields + ["`tabWebsite Item Group`.parent as wig_parent"],
|
fields=self.fields + ["`tabWebsite Item Group`.parent as wig_parent"],
|
||||||
filters=[["Website Item Group", "item_group", "=", item_group]]
|
filters=[
|
||||||
|
["Website Item Group", "item_group", "=", item_group],
|
||||||
|
["published", "=", 1]
|
||||||
|
]
|
||||||
)
|
)
|
||||||
return website_item_groups
|
return website_item_groups
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user