SOLR-11296: Spellcheck parameters not working in new UI

This commit is contained in:
Jan Høydahl 2018-12-14 15:07:28 +01:00
parent 04e05782a3
commit 62edbf2e7d
2 changed files with 4 additions and 1 deletions

View File

@ -175,6 +175,8 @@ Bug Fixes
* SOLR-13066: A failure while reloading a SolrCore can result in the SolrCore not being closed. (Mark Miller)
* SOLR-11296: Spellcheck parameters not working in new UI (Matt Pearce via janhoy)
Improvements
----------------------

View File

@ -43,7 +43,8 @@ solrAdminApp.controller('QueryController',
var copy = function(params, query) {
for (var key in query) {
terms = query[key];
if (terms.length > 0 && key[0]!="$") {
// Booleans have no length property - only set them if true
if (((typeof(terms) == typeof(true) && terms) || terms.length > 0) && key[0]!="$") {
set(key, terms);
}
}