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(