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
This commit is contained in:
Stefan Matheis 2012-09-19 07:04:52 +00:00
parent 7ae776e2d1
commit 909bd0a60d
2 changed files with 10 additions and 0 deletions

View File

@ -245,6 +245,9 @@ Bug Fixes
* SOLR-3759: Various fixes to the example-DIH configs (Ahmet Arslan, hossman) * 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 Other Changes
---------------------- ----------------------

View File

@ -528,6 +528,13 @@ sammy.get
array.push( { name : 'rows', value: rows } ); 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(); var custom_parameters = $( '#custom_parameters', form ).val();
if( custom_parameters.length ) if( custom_parameters.length )
{ {