mirror of https://github.com/apache/lucene.git
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:
parent
f00843419f
commit
6d1f1f6c78
|
@ -216,6 +216,8 @@ Bug Fixes
|
|||
|
||||
* 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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -111,8 +111,11 @@ solrAdminApp.controller('CollectionsController',
|
|||
}
|
||||
|
||||
$scope.createAlias = function() {
|
||||
var collections = $scope.aliasCollections.join(",");
|
||||
Collections.createAlias({name: $scope.aliasToCreate, collections: collections}, function(data) {
|
||||
var collections = [];
|
||||
for (var i in $scope.aliasCollections) {
|
||||
collections.push($scope.aliasCollections[i].name);
|
||||
}
|
||||
Collections.createAlias({name: $scope.aliasToCreate, collections: collections.join(",")}, function(data) {
|
||||
$scope.hideAll();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue