Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
remote-support: Show remote realm matches if deactivated.
Lauryn Menard26e305e27d10
diff --git a/corporate/views/support.py b/corporate/views/support.pyindex c55bbd350bf..0e54ee8b949 100644--- a/corporate/views/support.py+++ b/corporate/views/support.py@@ -490,11 +490,9 @@ def get_remote_servers_for_support(if uuid_to_search:remote_servers_set = set(remote_servers_query.filter(uuid__iexact=uuid_to_search))- remote_realm_matches = (- RemoteRealm.objects.filter(uuid__iexact=uuid_to_search)- .exclude(realm_deactivated=True)- .select_related("server")- )+ remote_realm_matches = RemoteRealm.objects.filter(+ uuid__iexact=uuid_to_search+ ).select_related("server")for remote_realm in remote_realm_matches:remote_servers_set.add(remote_realm.server)return list(remote_servers_set)@@ -504,9 +502,7 @@ def get_remote_servers_for_support(remote_servers_query.filter(hostname__icontains=hostname_to_search))remote_realm_matches = (- RemoteRealm.objects.filter(host__icontains=hostname_to_search).exclude(- realm_deactivated=True- )+ RemoteRealm.objects.filter(host__icontains=hostname_to_search)).select_related("server")for remote_realm in remote_realm_matches:remote_servers_set.add(remote_realm.server)