Skip to content

Commit

Permalink
Merge pull request #6320 from akatsoulas/product-aaq-config
Browse files Browse the repository at this point in the history
Get product regardless of AAQ config
  • Loading branch information
akatsoulas authored Oct 30, 2024
2 parents fcc8910 + a8a79c1 commit b136ae6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions kitsune/products/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ def document_listing(request, topic_slug, product_slug=None, subtopic_slug=None)
product = None
if product_slug and has_aaq_config(product_slug):
product = get_object_or_404(Product, slug=product_slug)
request.session["aaq_context"] = {
"has_ticketing_support": product.has_ticketing_support,
"product_slug": product_slug,
"has_public_forum": product.questions_enabled(locale=request.LANGUAGE_CODE),
}
if has_aaq_config(product):
request.session["aaq_context"] = {
"has_ticketing_support": product.has_ticketing_support,
"product_slug": product_slug,
"has_public_forum": product.questions_enabled(locale=request.LANGUAGE_CODE),
}

doc_kw = {
"locale": request.LANGUAGE_CODE,
Expand Down

0 comments on commit b136ae6

Please sign in to comment.