From 5832ecf48744f820a3e574f2014411d7992ff6de Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Sat, 25 Apr 2015 10:42:10 +0200 Subject: [PATCH] Request slice authority_hrn only, no names, fixed for fed4fire --- portal/slicerequestview.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/portal/slicerequestview.py b/portal/slicerequestview.py index 70ef4b72..c7102dc7 100644 --- a/portal/slicerequestview.py +++ b/portal/slicerequestview.py @@ -111,11 +111,12 @@ class SliceRequestView (LoginRequiredAutoLogoutView, ThemeView): # get the domain url current_site = Site.objects.get_current() current_site = current_site.domain - - # getting the authority_hrn from the selected organization - for authority in authorities: - if authority['name'] == request.POST.get('org_name', ''): - authority_hrn = authority['authority_hrn'] + + if theme.theme != 'fed4fire': + # getting the authority_hrn from the selected organization + for authority in authorities: + if authority['name'] == request.POST.get('org_name', ''): + authority_hrn = authority['authority_hrn'] # Handle the case when we use only hrn and not name if authority_hrn is None: -- 2.43.0