File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,12 @@ public IActionResult Index(
9797
9898 var CurrentSiteBaseUrl = configuration . GetCurrentSystemBaseUrl ( ) ;
9999
100- if ( TempData [ "allDelegatesCentreId" ] != null && TempData [ "allDelegatesCentreId" ] . ToString ( ) != User . GetCentreId ( ) . ToString ( )
101- && existingFilterString != null && ( TempData [ "LastBaseUrl" ] . ToString ( ) != CurrentSiteBaseUrl ) )
100+ if ( ( ( TempData [ "allDelegatesCentreId" ] != null && TempData [ "allDelegatesCentreId" ] . ToString ( ) != User . GetCentreId ( ) . ToString ( ) )
101+ || ( TempData [ "LastBaseUrl" ] != null && ( TempData [ "LastBaseUrl" ] . ToString ( ) != CurrentSiteBaseUrl ) ) ) && existingFilterString != null )
102102 {
103103 if ( existingFilterString . Contains ( "Answer" ) )
104104 existingFilterString = FilterHelper . RemoveNonExistingPromptFilters ( availableFilters , existingFilterString ) ;
105- if ( existingFilterString . Contains ( "DelegateGroup" ) )
105+ if ( existingFilterString != null && existingFilterString . Contains ( "DelegateGroup" ) )
106106 existingFilterString = FilterHelper . RemoveNonExistingFilterOptions ( availableFilters , existingFilterString ) ;
107107 }
108108
You can’t perform that action at this time.
0 commit comments