Skip to content

Commit

Permalink
[views] Include collection arg in bugreport URL
Browse files Browse the repository at this point in the history
  • Loading branch information
msimacek committed Mar 1, 2017
1 parent e302145 commit d30801e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions koschei/frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ def bugreport(name):
.filter(Package.name == name)\
.filter(Package.blocked == False)\
.filter(Package.last_complete_build_id != None)\
.filter(Package.collection_id == g.current_collections[0].id)\
.options(joinedload(Package.last_complete_build))\
.first() or abort(404)
variables = package.srpm_nvra or abort(404)
Expand Down
2 changes: 1 addition & 1 deletion templates/package-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h4>Choose a collection</h4>
<tr>
<th>Bug reports</th>
<td colspan="4">
<a href="{{ url_for('bugreport', name=package.name) }}">File new FTBFS bug</a>
<a href="{{ url_for('bugreport', name=package.name, collection=package.collection.name) }}">File new FTBFS bug</a>
</td>
</tr>
{% endif %}
Expand Down

0 comments on commit d30801e

Please sign in to comment.