U4-11216 Multiple Content Picker allows only one item when used as macro parameter (#2593)

U4-11216 set min and max number when used as parameter editor
This commit is contained in:
Dave Woestenborghs
2018-04-18 10:21:12 +02:00
committed by Sebastiaan Janssen
parent 61cd59b237
commit f25233ac2b
2 changed files with 5 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ function contentPickerController($scope, entityResource, editorState, iconHelper
$scope.renderModel = [];
$scope.dialogEditor = editorState && editorState.current && editorState.current.isDialogEditor === true;
$scope.dialogEditor = editorState && editorState.current && editorState.current.isDialogEditor === true;
//the default pre-values
var defaultConfig = {
@@ -93,7 +93,7 @@ function contentPickerController($scope, entityResource, editorState, iconHelper
$scope.model.config.showOpenButton = ($scope.model.config.showOpenButton === "1" ? true : false);
$scope.model.config.showEditButton = ($scope.model.config.showEditButton === "1" ? true : false);
$scope.model.config.showPathOnHover = ($scope.model.config.showPathOnHover === "1" ? true : false);
var entityType = $scope.model.config.startNode.type === "member"
? "Member"
: $scope.model.config.startNode.type === "media"

View File

@@ -9,6 +9,8 @@ namespace Umbraco.Web.PropertyEditors.ParameterEditors
public MultipleContentPickerParameterEditor()
{
Configuration.Add("multiPicker", "1");
Configuration.Add("minNumber",0 );
Configuration.Add("maxNumber", 0);
}
}
}
}