Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 7896de5

Browse files
authored
Merge pull request #229 from skttl/develop
Preparing 1.2.6
2 parents beab80f + 9ea5905 commit 7896de5

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## 1.2.6 - 2020-12-07
9+
- Fix: Error saving temp blueprint
10+
- Fix: issue when previewing linked content items
11+
12+
## [1.2.5] - 2020-11-01
913
- Resetting saveButtonState when validation contains errors #221
1014
- Handle null value when deserializing grid value in DataValueReference 50ba85aaeeb66ed305248d303d568e4698943094
1115

@@ -49,7 +53,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4953
- Developers Guide updated
5054
- New minimum Umbraco version requirement: 8.1.0 - Doc Type Grid Editor will not work in lower versions!
5155

52-
[unreleased]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.4...HEAD
56+
[unreleased]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.5...HEAD
57+
[1.2.5]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.4...1.2.5
5358
[1.2.4]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.3...1.2.4
5459
[1.2.3]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.2...1.2.3
5560
[1.2.2]: https://github.com/skttl/umbraco-doc-type-grid-editor/compare/1.2.1...1.2.2

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image: Visual Studio 2017
22

33
# version format
4-
version: 1.2.5.{build}
4+
version: 1.2.6.{build}
55

66
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
77
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta

src/Our.Umbraco.DocTypeGridEditor/Web/Controllers/DocTypeGridEditorApiController.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class DocTypeGridEditorApiController : UmbracoAuthorizedJsonController
3131
private readonly IContentTypeService _contentTypeService;
3232
private readonly IDataTypeService _dataTypeService;
3333
private readonly IPublishedContentCache _contentCache;
34-
34+
3535
public DocTypeGridEditorApiController()
3636
{
3737
}
@@ -157,7 +157,7 @@ public HttpResponseMessage GetPreviewMarkup([FromBody] PreviewData data, [FromUr
157157
UmbracoContext.PublishedRequest = router.CreateRequest(UmbracoContext, Request.RequestUri);
158158
UmbracoContext.PublishedRequest.PublishedContent = page;
159159
}
160-
160+
161161
// Set the culture for the preview
162162
if (page != null && page.Cultures != null)
163163
{
@@ -168,6 +168,7 @@ public HttpResponseMessage GetPreviewMarkup([FromBody] PreviewData data, [FromUr
168168
UmbracoContext.PublishedRequest.Culture = culture;
169169
System.Threading.Thread.CurrentThread.CurrentCulture = culture;
170170
System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
171+
UmbracoContext.VariationContextAccessor.VariationContext = new VariationContext(culture.Name);
171172
}
172173
}
173174

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js/doctypegrideditor.controllers.js

+2
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
288288
}
289289

290290
contentEditingHelper.contentEditorPerformSave(args).then(function (data) {
291+
$scope.model.node.id = data.id;
291292
$scope.model.submit($scope.model);
292293
// Reset original value of $routeParams.create
293294
$routeParams.create = routeParamsCreate;
@@ -296,6 +297,7 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
296297
// Set original value of $routeParams.create
297298
$routeParams.create = routeParamsCreate;
298299
// cleanup the blueprint immediately
300+
$scope.model.node.id = err.data.id;
299301
cleanup();
300302
vm.saveButtonState = "error";
301303
});

0 commit comments

Comments
 (0)