You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by so...@apache.org on 2020/06/03 19:14:00 UTC
[lucene-solr] 31/47: SOLR-14237: Fix an error on admin UI due to
improper variable handling
This is an automated email from the ASF dual-hosted git repository.
sokolov pushed a commit to branch jira/lucene-8962
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 8fc28efa13fe3a6d928abe9e4152ed090cd281d7
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Thu May 28 16:55:00 2020 +0530
SOLR-14237: Fix an error on admin UI due to improper variable handling
---
solr/webapp/web/js/angular/controllers/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/webapp/web/js/angular/controllers/index.js b/solr/webapp/web/js/angular/controllers/index.js
index f8b0747..e931d59 100644
--- a/solr/webapp/web/js/angular/controllers/index.js
+++ b/solr/webapp/web/js/angular/controllers/index.js
@@ -21,7 +21,7 @@ solrAdminApp.controller('IndexController', function($scope, System, Cores, Const
System.get(function(data) {
$scope.system = data;
- if (username in data.security) {
+ if ("username" in data.security) {
// Needed for Kerberos, since this is the only place from where
// Kerberos username can be obtained.
sessionStorage.setItem("auth.username", data.security.username);