From 909bd0a60d1dbe08bb7f80136f6b25602e58631c Mon Sep 17 00:00:00 2001 From: Stefan Matheis Date: Wed, 19 Sep 2012 07:04:52 +0000 Subject: [PATCH] SOLR-3777: Dataimport-UI does not send unchecked checkboxes git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1387467 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ solr/webapp/web/js/scripts/dataimport.js | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 9031d1261d5..92658642945 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -245,6 +245,9 @@ Bug Fixes * SOLR-3759: Various fixes to the example-DIH configs (Ahmet Arslan, hossman) +* SOLR-3777: Dataimport-UI does not send unchecked checkboxes (Glenn MacStravic + via steffkes) + Other Changes ---------------------- diff --git a/solr/webapp/web/js/scripts/dataimport.js b/solr/webapp/web/js/scripts/dataimport.js index c18f129df6e..7acb1ea84c1 100644 --- a/solr/webapp/web/js/scripts/dataimport.js +++ b/solr/webapp/web/js/scripts/dataimport.js @@ -528,6 +528,13 @@ sammy.get array.push( { name : 'rows', value: rows } ); } + $( 'input:checkbox', form ).not( ':checked' ) + .each( function( i, input ) + { + array.push( { name: input.name, value: 'false' } ); + } + ); + var custom_parameters = $( '#custom_parameters', form ).val(); if( custom_parameters.length ) {