diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
index 4ccead279a..418e5de677 100644
--- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
+++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
@@ -88,7 +88,7 @@
-
+
@@ -260,16 +260,9 @@
scripting.config
-
- ExamineSettings.config
- feedProxy.config
-
- ExamineIndex.config
- Designer
- Dashboard.configDesigner
@@ -317,10 +310,6 @@
Designer
-
-
- Designer
-
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
index a96abadbbe..eaa1c6c39e 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
@@ -270,8 +270,10 @@
Include drafts: also publish unpublished content items.This value is hidden. If you need access to view this value please contact your website administrator.This value is hidden.
+ What languages would you like to publish? All languages with content are saved!What languages would you like to publish?What languages would you like to save?
+ All languages with content are saved on creation!What languages would you like to send for approval?What languages would you like to schedule?Select the languages to unpublish. Unpublishing a mandatory language will unpublish all languages.
diff --git a/src/Umbraco.Web.UI/config/ExamineIndex.Release.config b/src/Umbraco.Web.UI/config/ExamineIndex.Release.config
deleted file mode 100644
index ec0d18aa2d..0000000000
--- a/src/Umbraco.Web.UI/config/ExamineIndex.Release.config
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
diff --git a/src/Umbraco.Web.UI/config/ExamineIndex.config b/src/Umbraco.Web.UI/config/ExamineIndex.config
deleted file mode 100644
index 833a65c8d1..0000000000
--- a/src/Umbraco.Web.UI/config/ExamineIndex.config
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
diff --git a/src/Umbraco.Web.UI/config/ExamineSettings.Release.config b/src/Umbraco.Web.UI/config/ExamineSettings.Release.config
deleted file mode 100644
index 6b3aaa0372..0000000000
--- a/src/Umbraco.Web.UI/config/ExamineSettings.Release.config
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Umbraco.Web.UI/config/ExamineSettings.config b/src/Umbraco.Web.UI/config/ExamineSettings.config
deleted file mode 100644
index f0fd2b69fc..0000000000
--- a/src/Umbraco.Web.UI/config/ExamineSettings.config
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Umbraco.Web.UI/web.Template.Debug.config b/src/Umbraco.Web.UI/web.Template.Debug.config
index 5a37c4a09b..8c4b3bb299 100644
--- a/src/Umbraco.Web.UI/web.Template.Debug.config
+++ b/src/Umbraco.Web.UI/web.Template.Debug.config
@@ -1,7 +1,8 @@
-
+
+
+
+
+
+
+
+
+
-
+
diff --git a/src/Umbraco.Web.UI/web.Template.config b/src/Umbraco.Web.UI/web.Template.config
index 6bc1216d34..68fee030a0 100644
--- a/src/Umbraco.Web.UI/web.Template.config
+++ b/src/Umbraco.Web.UI/web.Template.config
@@ -10,8 +10,6 @@
-
-
@@ -36,8 +34,6 @@
-
-
diff --git a/src/Umbraco.Web/Editors/ContentController.cs b/src/Umbraco.Web/Editors/ContentController.cs
index 9f0e350e55..80ba00d07a 100644
--- a/src/Umbraco.Web/Editors/ContentController.cs
+++ b/src/Umbraco.Web/Editors/ContentController.cs
@@ -515,13 +515,14 @@ namespace Umbraco.Web.Editors
[HttpPost]
public SimpleNotificationModel CreateBlueprintFromContent([FromUri]int contentId, [FromUri]string name)
{
- if (string.IsNullOrWhiteSpace(name)) throw new ArgumentException("Value cannot be null or whitespace.", "name");
+ if (string.IsNullOrWhiteSpace(name))
+ throw new ArgumentException("Value cannot be null or whitespace.", nameof(name));
var content = Services.ContentService.GetById(contentId);
if (content == null)
throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
- EnsureUniqueName(name, content, "name");
+ EnsureUniqueName(name, content, nameof(name));
var blueprint = Services.ContentService.CreateContentFromBlueprint(content, name, Security.GetUserId().ResultOr(0));
@@ -612,7 +613,7 @@ namespace Umbraco.Web.Editors
var msKey = $"Variants[{variantCount}].Name";
if (ModelState.ContainsKey(msKey))
{
- if (!variant.Save)
+ if (!variant.Save || IsCreatingAction(contentItem.Action))
ModelState.Remove(msKey);
else
variantNameErrors.Add(variant.Culture);
diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
index 229a981510..9e45bc17c5 100644
--- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
+++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
@@ -239,9 +239,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
try
{
- if (eMgr.TryGetIndex(Constants.UmbracoIndexes.InternalIndexName, out var index))
- return index.GetSearcher();
- throw new InvalidOperationException($"No index found by name {Constants.UmbracoIndexes.InternalIndexName}");
+ return eMgr.TryGetIndex(Constants.UmbracoIndexes.InternalIndexName, out var index) ? index.GetSearcher() : null;
}
catch (FileNotFoundException)
{
diff --git a/src/Umbraco.Web/Search/ExamineComposer.cs b/src/Umbraco.Web/Search/ExamineComposer.cs
index ced169e6dc..8ee2caedee 100644
--- a/src/Umbraco.Web/Search/ExamineComposer.cs
+++ b/src/Umbraco.Web/Search/ExamineComposer.cs
@@ -21,12 +21,12 @@ namespace Umbraco.Web.Search
{
base.Compose(composition);
- // populators are not a collection: once cannot remove ours, and can only add more
+ // populators are not a collection: one cannot remove ours, and can only add more
// the container can inject IEnumerable and get them all
- composition.Register(Lifetime.Singleton);
- composition.Register(Lifetime.Singleton);
- composition.Register(Lifetime.Singleton);
- composition.Register(Lifetime.Singleton);
+ composition.Register(Lifetime.Singleton);
+ composition.Register(Lifetime.Singleton);
+ composition.Register(Lifetime.Singleton);
+ composition.Register(Lifetime.Singleton);
composition.Register(Lifetime.Singleton);
composition.RegisterUnique();
diff --git a/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs b/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs
index 0f587797af..99f4c4b453 100644
--- a/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs
+++ b/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs
@@ -1,20 +1,11 @@
using System.Collections.Generic;
using Umbraco.Core.Logging;
using Umbraco.Core.Services;
-using Umbraco.Core.Strings;
using Umbraco.Examine;
-using Umbraco.Core.Persistence;
-using Umbraco.Core.IO;
-using System.IO;
-using Lucene.Net.Store;
using Lucene.Net.Analysis.Standard;
-using Lucene.Net.Analysis;
using Examine.LuceneEngine;
using Examine;
-using Examine.LuceneEngine.Providers;
-using System.Linq;
using Umbraco.Core;
-using Umbraco.Core.Models;
namespace Umbraco.Web.Search
{
@@ -59,8 +50,8 @@ namespace Umbraco.Web.Search
{
var index = new UmbracoContentIndex(
Constants.UmbracoIndexes.InternalIndexName,
- new UmbracoFieldDefinitionCollection(),
CreateFileSystemLuceneDirectory(Constants.UmbracoIndexes.InternalIndexPath),
+ new UmbracoFieldDefinitionCollection(),
new CultureInvariantWhitespaceAnalyzer(),
ProfilingLogger,
LanguageService,
@@ -72,8 +63,8 @@ namespace Umbraco.Web.Search
{
var index = new UmbracoContentIndex(
Constants.UmbracoIndexes.ExternalIndexName,
- new UmbracoFieldDefinitionCollection(),
CreateFileSystemLuceneDirectory(Constants.UmbracoIndexes.ExternalIndexPath),
+ new UmbracoFieldDefinitionCollection(),
new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_30),
ProfilingLogger,
LanguageService,
diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj
index 180f69e2cc..fa1b620152 100755
--- a/src/Umbraco.Web/Umbraco.Web.csproj
+++ b/src/Umbraco.Web/Umbraco.Web.csproj
@@ -63,7 +63,7 @@
-
+ 2.6.2.25