Skip to content

Commit

Permalink
GPG-937: GPG-Organisations-Without-Reports 404
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairknight committed Dec 19, 2022
1 parent 60cb94b commit 539bd02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ bld/

# Visual Studio 2015 cache/options directory
.vs/
.vscode/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

Expand Down
5 changes: 3 additions & 2 deletions GenderPayGap.WebUI/Controllers/EhrcController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public IActionResult EhrcAllOrganisationsForYear_EhrcIpProtectedLink(
string p
/* The EHRC are given URLs of the form:
https://gender-pay-gap.service.gov.uk/download?p=App_Data\Downloads\GPG-Organisations_2017-18.csv
https://gender-pay-gap.service.gov.uk/download?p=App_Data\Downloads\GPG-Organisations-Without-Reports_2017-18.csv
So this query parameter 'p' is of the form
App_Data\Downloads\GPG-Organisations_2017-18.csv
Expand All @@ -42,12 +43,12 @@ and extract the year from the URL

var OrganisationsWithoutReportsYear = ValidatePath(
p,
"GPG-Organisations",
"GPG-Organisations-Without-Reports",
Global.FirstReportingYear);

if (OrganisationsWithoutReportsYear != null)
{
return AdminDownloadsController.GenerateOrganisationsWithNoSubmittedReturnsForYear(dataRepository ,(int)OrganisationsWithoutReportsYear, true);
return AdminDownloadsController.GenerateOrganisationsWithNoSubmittedReturnsForYear(dataRepository, (int)OrganisationsWithoutReportsYear, true);
}

return NotFound();
Expand Down
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<packageSources>
<add key="Nuget" value="https://www.nuget.org/api/v2/" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="Local" value="%BUILD_SOURCESDIRECTORY%/Lib" /><!-- Allows us to put a GovUkDesignSystem package in /Lib -->
<add key="Local" value="./Lib" /><!-- (%BUILD_SOURCESDIRECTORY%/Lib) Allows us to put a GovUkDesignSystem package in /Lib -->
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
Expand Down
2 changes: 1 addition & 1 deletion NuGetVSTS.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<packageSources>
<add key="Nuget" value="https://www.nuget.org/api/v2/" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="Local" value="%BUILD_SOURCESDIRECTORY%/Lib" /><!-- Allows us to put a GovUkDesignSystem package in /Lib -->
<add key="Local" value="./Lib" /><!-- (%BUILD_SOURCESDIRECTORY%/Lib) Allows us to put a GovUkDesignSystem package in /Lib -->
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
Expand Down

0 comments on commit 539bd02

Please sign in to comment.