mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Fix query for version-specific security support list
When asking for version x, we should still list all versions the patch in question applies to, not limit it to the current one.
This commit is contained in:
@ -25,6 +25,7 @@ def version(request, numtree):
|
||||
version = get_object_or_404(Version, tree=numtree)
|
||||
# It's safe to pass in the value since we get it from the module, not from
|
||||
# the actual querystring.
|
||||
return _list_patches(request, "EXISTS (SELECT 1 FROM security_securitypatchversion svv WHERE svv.version_id={0} AND svv.patch_id=p.id)".format(version.id))
|
||||
return _list_patches(request, "v.id={0}".format(version.id))
|
||||
|
||||
patches = SecurityPatch.objects.filter(public=True, versions=version).distinct()
|
||||
|
Reference in New Issue
Block a user