Skip to content

Commit

Permalink
Build: bugfix to show build notifications (#11153)
Browse files Browse the repository at this point in the history
The context was updated in the wrong place.

Closes #11146
  • Loading branch information
humitos committed Feb 27, 2024
1 parent 8eafdaf commit ac518c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readthedocs/builds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def get_context_data(self, **kwargs):
context["project"] = self.project

build = self.get_object()
context["notifications"] = build.notifications.all()

if not build.notifications.filter(
message_id=BuildAppError.GENERIC_WITH_BUILD_ID
Expand Down Expand Up @@ -212,5 +213,5 @@ def get_context_data(self, **kwargs):
issue_url = scheme.format(**scheme_dict)
issue_url = urlparse(issue_url).geturl()
context["issue_url"] = issue_url
context["notifications"] = build.notifications.all()

return context

0 comments on commit ac518c7

Please sign in to comment.