From 7c95b8609876322e812931693e988e427ca1d9d5 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Fri, 20 Jul 2018 13:49:47 +0100 Subject: [PATCH 1/3] Bumping version number for hotfixes --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 7e3c389..47e24bd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,7 @@ image: Visual Studio 2017 # version format -version: 2.0.0.{build} +version: 2.0.1.{build} # UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha # example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta From 4efeb07877c53208edb7553a9fecbf9f64cf9e29 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Tue, 31 Jul 2018 18:16:14 +0100 Subject: [PATCH 2/3] Corrected NuGet dependency version for InnerContent v2.0+ Fixes #50 --- build/package.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/package.nuspec b/build/package.nuspec index f2ff258..45eb88b 100644 --- a/build/package.nuspec +++ b/build/package.nuspec @@ -16,7 +16,7 @@ - + From b832b18bb4800ca92c5e6d51f66168c7d5622d88 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Tue, 31 Jul 2018 18:42:30 +0100 Subject: [PATCH 3/3] Fixed bug with doctype editor preview If the Stack was configured to be in Single Item Mode and have Preview enabled, it would throw an error in the doctype editor (in the Settings section), as StackedContent would try to use the doctype's ID as the unpublished node's ID. Added a check to make sure that we are loading previews in the Content section, by checking if the `editorState` has a "contentTypeAlias" property. --- .../Web/UI/App_Plugins/StackedContent/js/stackedcontent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Our.Umbraco.StackedContent/Web/UI/App_Plugins/StackedContent/js/stackedcontent.js b/src/Our.Umbraco.StackedContent/Web/UI/App_Plugins/StackedContent/js/stackedcontent.js index 0ca8220..b6edbb5 100644 --- a/src/Our.Umbraco.StackedContent/Web/UI/App_Plugins/StackedContent/js/stackedcontent.js +++ b/src/Our.Umbraco.StackedContent/Web/UI/App_Plugins/StackedContent/js/stackedcontent.js @@ -182,7 +182,7 @@ angular.module("umbraco").controller("Our.Umbraco.StackedContent.Controllers.Sta } }); - } else if ($scope.model.config.singleItemMode === "1") { + } else if (editorState.current.hasOwnProperty("contentTypeAlias") && $scope.model.config.singleItemMode === "1") { // Initialise single item mode model innerContentService.createDefaultDbModel($scope.model.config.contentTypes[0]).then(function (v) {