SOLR-9032: Fix Create Alias command in Admin UI

Upayavira's patch applied to master and tested against cloud example
This commit is contained in:
Alexandre Rafalovitch 2016-08-16 11:15:37 +10:00
parent f00843419f
commit 6d1f1f6c78
2 changed files with 7 additions and 2 deletions

View File

@ -216,6 +216,8 @@ Bug Fixes
* SOLR-8993: Admin UI now correctly supports multiple DIH handler end-points (Upayavira, Alexandre Rafalovitch) * SOLR-8993: Admin UI now correctly supports multiple DIH handler end-points (Upayavira, Alexandre Rafalovitch)
* SOLR-9032: Admin UI now correctly implements Create Alias command (Upayavira, Alexandre Rafalovitch)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -111,8 +111,11 @@ solrAdminApp.controller('CollectionsController',
} }
$scope.createAlias = function() { $scope.createAlias = function() {
var collections = $scope.aliasCollections.join(","); var collections = [];
Collections.createAlias({name: $scope.aliasToCreate, collections: collections}, function(data) { for (var i in $scope.aliasCollections) {
collections.push($scope.aliasCollections[i].name);
}
Collections.createAlias({name: $scope.aliasToCreate, collections: collections.join(",")}, function(data) {
$scope.hideAll(); $scope.hideAll();
}); });
} }