You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by st...@apache.org on 2012/09/19 09:08:35 UTC
svn commit: r1387468 - in /lucene/dev/branches/branch_4x/solr: CHANGES.txt
webapp/web/js/scripts/dataimport.js
Author: steffkes
Date: Wed Sep 19 07:08:35 2012
New Revision: 1387468
URL: http://svn.apache.org/viewvc?rev=1387468&view=rev
Log:
SOLR-3777: Dataimport-UI does not send unchecked checkboxes (merge r1387467)
Modified:
lucene/dev/branches/branch_4x/solr/CHANGES.txt (contents, props changed)
lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/dataimport.js
Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1387468&r1=1387467&r2=1387468&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Wed Sep 19 07:08:35 2012
@@ -238,6 +238,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
----------------------
Modified: lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/dataimport.js
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/dataimport.js?rev=1387468&r1=1387467&r2=1387468&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/dataimport.js (original)
+++ lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/dataimport.js Wed Sep 19 07:08:35 2012
@@ -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 )
{