From c1e35f1b82a3b5e8721c70045fdcce46d6607111 Mon Sep 17 00:00:00 2001 From: Stefan Matheis Date: Sun, 23 Jun 2013 15:00:59 +0000 Subject: [PATCH] SOLR-4611: Admin UI - Analysis-Urls with empty parameters create empty result table git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1495826 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ solr/webapp/web/js/scripts/analysis.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index dca1df00393..45118f387ca 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -202,6 +202,9 @@ Optimizations * SOLR-4719 : Admin UI - Default to wt=json on Query-Screen (steffkes) +* SOLR-4611: Admin UI - Analysis-Urls with empty parameters create empty result table + (steffkes) + Other Changes ---------------------- diff --git a/solr/webapp/web/js/scripts/analysis.js b/solr/webapp/web/js/scripts/analysis.js index ed9613c896f..9dc7ad39bb1 100644 --- a/solr/webapp/web/js/scripts/analysis.js +++ b/solr/webapp/web/js/scripts/analysis.js @@ -125,7 +125,7 @@ sammy.get var fields = 0; for( var key in context.params ) { - if( 'string' === typeof context.params[key] ) + if( 'string' === typeof context.params[key] && 0 !== context.params[key].length ) { fields++; $( '[name="' + key + '"]', analysis_form )