From dde84c6675e694cb4f42f3c209b95c04f5f77c8a Mon Sep 17 00:00:00 2001 From: MarkLark86 Date: Fri, 12 Jun 2020 21:30:42 +1000 Subject: [PATCH] [SDESK-5339] (fix): Incorrect Company id for product searches (#1057) --- newsroom/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newsroom/search.py b/newsroom/search.py index 4afb70c2b..a883075d4 100644 --- a/newsroom/search.py +++ b/newsroom/search.py @@ -291,7 +291,7 @@ def prefill_search_products(self, search): search.products = get_product_by_id( search.args['product'], product_type=search.section, - company_id=search.company + company_id=search.company.get('_id') ) else: search.products = get_products_by_company(