Merge pull request #528 from robertjf/7.2.0
Fixes issue U4-5754 Attempt to set start node on Media Picker sends user...
This commit is contained in:
@@ -58,7 +58,7 @@ function mediaPickerController($scope, dialogService, entityResource, $log, icon
|
||||
|
||||
//load media data
|
||||
var modelIds = $scope.model.value ? $scope.model.value.split(',') : [];
|
||||
entityResource.getByIds(modelIds, $scope.cfg.entityType).then(function (data) {
|
||||
entityResource.getByIds(modelIds, dialogOptions.entityType).then(function (data) {
|
||||
_.each(data, function (item, i) {
|
||||
item.icon = iconHelper.convertFromLegacyIcon(item.icon);
|
||||
$scope.renderModel.push({ name: item.name, id: item.id, icon: item.icon });
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
}
|
||||
|
||||
//then we'll just use the root group's data to make the composite tab
|
||||
var rootGroup = propertyGroups.Single(x => x.ParentId == null);
|
||||
var rootGroup = propertyGroups.First(x => x.ParentId == null);
|
||||
aggregateTabs.Add(new Tab<ContentPropertyDisplay>
|
||||
{
|
||||
Id = rootGroup.Id,
|
||||
|
||||
Reference in New Issue
Block a user