Skip to content

Commit e75156c

Browse files
author
Marcus Funch
committed
Merge branch 'release/5.10.1' into 'master'
Release 5.10.1 See merge request os2borgerpc/os2borgerpc-admin-site!375
2 parents 84a8ce5 + c41e202 commit e75156c

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

NEWS.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 5.10.1, December 19, 2022
2+
---------------------------------
3+
4+
- Fix bug where security problems showed up on the groups for other sites on the group page
5+
16
Version 5.10.0, December 14, 2022
27
---------------------------------
38

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.10.0
1+
5.10.1

admin_site/system/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ def get_context_data(self, **kwargs):
22932293
# Manually create a list of security problems to not only include those attached but also those
22942294
# unattached which currently apply to all groups
22952295
context["security_problems_incl_site"] = group.security_problems.all().union(
2296-
SecurityProblem.objects.filter(alert_groups=None)
2296+
SecurityProblem.objects.filter(alert_groups=None, site=site)
22972297
)
22982298

22992299
# PC picklist related

admin_site/templates/system/pcgroups/site_groups.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
<h2 class="divideheader">Detaljer om <em>{{ selected_group.name }}</em></h2>
4646
{% include 'notification.html' %}
4747

48-
<form name="updategroupform"
48+
<form name="updategroupform"
4949
id="updategroupform"
5050
action="{% url 'group' site.uid selected_group.url %}"
51-
method="post"
52-
enctype="multipart/form-data"
51+
method="post"
52+
enctype="multipart/form-data"
5353
class="row-fluid"
5454
onsubmit="updateScriptPositions()">
5555

0 commit comments

Comments
 (0)