diff --git a/.gitignore b/.gitignore
index 4119589ad..5e8ca2030 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,3 +48,7 @@ obj
/WebAPI/MigrationTool/LearningHub.Nhs.Migration.Staging.Database/LearningHub.Nhs.Migration.Staging.Database.dbmdl
/WebAPI/MigrationTool/LearningHub.Nhs.Migration.Staging.Database/LearningHub.Nhs.Migration.Staging.Database.jfm
/LearningHub.Nhs.WebUI.AutomatedUiTests/appsettings.Development.json
+/OpenAPI/LearningHub.Nhs.OpenApi/appsettings.Development.json
+/OpenAPI/LearningHub.Nhs.OpenApi/web.config
+/AdminUI/LearningHub.Nhs.AdminUI/LearningHub.Nhs.AdminUI.csproj.user
+/WebAPI/LearningHub.Nhs.API/LearningHub.Nhs.Api.csproj.user
diff --git a/AdminUI/LearningHub.Nhs.AdminUI/LearningHub.Nhs.AdminUI.csproj b/AdminUI/LearningHub.Nhs.AdminUI/LearningHub.Nhs.AdminUI.csproj
index 21ec69f5e..dd474573d 100644
--- a/AdminUI/LearningHub.Nhs.AdminUI/LearningHub.Nhs.AdminUI.csproj
+++ b/AdminUI/LearningHub.Nhs.AdminUI/LearningHub.Nhs.AdminUI.csproj
@@ -89,7 +89,7 @@
-
+
diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml
index e0e81edcf..629e03c7c 100644
--- a/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml
+++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml
@@ -162,6 +162,11 @@
The maximum length is 50 characters.
+
@@ -341,6 +346,9 @@
} else {
$('#add-keyword').removeAttr('disabled');
}
+
+ $('#keyword-error-span').hide();
+ $('#keyword-error-span').html('');
});
$('#add-keyword').on('click', function () {
@@ -355,6 +363,8 @@
return item.trim();
});
+ var duplicateKeywords = [];
+ $('#keyword-error-span').hide();
values.forEach(function (value) {
if (value && keywords.indexOf(value) === -1) {
keywords.push(value);
@@ -368,6 +378,12 @@
$(x).attr('name', "Keywords[" + i + "]");
});
}
+ else
+ {
+ duplicateKeywords.push(value);
+ $('#keyword-error-span').show();
+ $('#keyword-error-span').html('The keyword(s) have already been added : ' + duplicateKeywords.join(', '))
+ }
});
$keywordInput.val("");
diff --git a/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs b/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs
index 4f77c00bb..755c14d62 100644
--- a/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs
+++ b/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs
@@ -68,6 +68,7 @@ public async Task
Scorm(int id)
/// filePath.
/// bool.
//// [ResponseCache(VaryByQueryKeys = new[] { "*" }, Duration = 0, NoStore = true)] // disable caching
+ //// Removed Request.Headers["Referer"] Referer URL checking based on issue reported in TD-4283
[AllowAnonymous]
[Route("ScormContent/{*filePath}")]
public async Task ScormContent(string filePath)
@@ -79,12 +80,6 @@ public async Task ScormContent(string filePath)
try
{
- var referringUrl = this.Request.Headers["Referer"].ToString();
- if (string.IsNullOrEmpty(referringUrl))
- {
- throw new UnauthorizedAccessException("Referer URL is required.");
- }
-
if (!this.User.Identity.IsAuthenticated)
{
throw new UnauthorizedAccessException("User is not authenticated.");
diff --git a/LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI.csproj b/LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI.csproj
index 9e46194b1..c1930e7fa 100644
--- a/LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI.csproj
+++ b/LearningHub.Nhs.WebUI/LearningHub.Nhs.WebUI.csproj
@@ -108,7 +108,7 @@
-
+
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue
index 5a20df8ad..ab3a50bd0 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue
@@ -65,15 +65,14 @@
-
Provide guidance for the learner at the end of this assessment.
-
-
Provide guidance for the learner at the end of this assessment.
+
+
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/components/KeyWordsEditor.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/components/KeyWordsEditor.vue
index bfc00c5aa..38c9c50c7 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/components/KeyWordsEditor.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/components/KeyWordsEditor.vue
@@ -4,7 +4,7 @@