Skip to content

Commit

Permalink
[SDESK-5339] (fix): Incorrect Company id for product searches (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Jun 12, 2020
1 parent 6be6129 commit dde84c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newsroom/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit dde84c6

Please sign in to comment.