Apache Lucene open-source search software
SOLR-8137 Use swapCorelist rather than otherCorelist
Upayavira82e422080db5
diff --git a/solr/webapp/web/js/angular/controllers/cores.js b/solr/webapp/web/js/angular/controllers/cores.jsindex 58ae19950e7..347dbf4c1f8 100644--- a/solr/webapp/web/js/angular/controllers/cores.js+++ b/solr/webapp/web/js/angular/controllers/cores.js@@ -36,15 +36,15 @@ solrAdminApp.controller('CoreAdminController',}$scope.core = cores[$scope.selectedCore];$scope.corelist = [];- $scope.otherCorelist = [];+ $scope.swapCorelist = [];for (var core in cores) {$scope.corelist.push(cores[core]);if (cores[core] != $scope.core) {- $scope.otherCorelist.push(cores[core]);+ $scope.swapCorelist.push(cores[core]);}}- if ($scope.otherCorelist.length>0) {- $scope.swapOther = $scope.otherCorelist[0].name;+ if ($scope.swapCorelist.length>0) {+ $scope.swapOther = $scope.swapCorelist[0].name;}});};diff --git a/solr/webapp/web/partials/cores.html b/solr/webapp/web/partials/cores.htmlindex a605006f79d..a6bb5520346 100644--- a/solr/webapp/web/partials/cores.html+++ b/solr/webapp/web/partials/cores.html@@ -109,7 +109,7 @@ limitations under the License.<input type="text" id="swap_core" name="core" ng-model="selectedCore" readonly="readonly"></p><p class="clearfix"><label for="swap_other">and:</label>- <select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in otherCorelist" class="other">+ <select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in swapCorelist" class="other"></select></p><p class="clearfix note error" ng-show="swapMessage">