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

Commit b4ce3a0

Browse files
authored
Merge pull request #245 from skttl/develop
Preparing 1.2.7
2 parents 7896de5 + 9dd79e6 commit b4ce3a0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/developers-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The **Doc Type Grid Editor** supports 3 config options, all of which are optiona
8383

8484
| Member | Type | Description |
8585
|-----------------|----------|-------------|
86-
| AllowedDocTypes | String[] | An array of doc type aliases of which should be allowed to be selected in the grid editor. Strings can be REGEX patterns to allow matching groups of doc types in a single entry. e.g. "Widget$" will match all doc types with an alias ending in "Widget". However if a single doc type is matched, (aka **Single Doc Type Mode**), then doc type selection stage (in the DTGE panel) will be skipped. Note, your document type must be an Element type, in order to be usable in DTGE. |
86+
| AllowedDocTypes | String[] | An array of doc type aliases of which should be allowed to be selected in the grid editor. By default Strings are REGEX patterns to allow matching groups of doc types in a single entry. e.g. "widgetAlias" will match all doc types with an alias starting in "widgetAlias". By adding "$" to the end of the string you can stop this behaviour e.g. "widgetAlias$" will only match a doc type with an alias of "widgetAlias". However if a single doc type is matched, (aka **Single Doc Type Mode**), then doc type selection stage (in the DTGE panel) will be skipped. Note, your document type must be an Element type, in order to be usable in DTGE. |
8787
| NameTemplate | String | Allows using any of the doctype's property values in the name/label: {{propertyAlias}} |
8888
| EnablePreview | Boolean | Enables rendering a preview of the grid cell in the grid editor. |
8989
| overlaySize | String | Define the size of the grid editor dialog. You can write `large`, `medium` or `small`. If no size is set, the grid editor dialog will be small. Note, the medium size requires a minimum Umbraco version of 8.3 |

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,13 @@ angular.module("umbraco").controller("Our.Umbraco.DocTypeGridEditor.Dialogs.DocT
297297
// Set original value of $routeParams.create
298298
$routeParams.create = routeParamsCreate;
299299
// cleanup the blueprint immediately
300-
$scope.model.node.id = err.data.id;
300+
if (err && err.data) {
301+
$scope.model.node.id = err.data.id;
302+
}
301303
cleanup();
302304
vm.saveButtonState = "error";
303305
});
306+
vm.saveButtonState = "init";
304307
}
305308
}
306309
function close() {

0 commit comments

Comments
 (0)