Commit 10b93158 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Pide datos de filteringSelect con campos concretos

parent bdf360cf
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@ define([
				idProperty: "id",
				sizeDefault: 10,
				target: null,
				omitLoading: true
				omitLoading: true,
				defaultReturnFields: ['id', 'name']
			};

			lang.mixin(this, this.config, args);
@@ -52,6 +53,7 @@ define([

			this._inputProps.idProperty = this.idProperty;
			this.fields = this._inputProps.fields;
			this.returnFields = this._inputProps.returnFields || this.defaultReturnFields;

			if (this._inputProps.type) {
				this.type = this._inputProps.type;
@@ -114,8 +116,9 @@ define([
		_getElasticQuery: function(/*Object*/ query, /*Object*/ options) {

			var queryResult = {
				"from": options.start ? options.start : 0,
				"size": options.count ? options.count : this.sizeDefault
				from: options.start ? options.start : 0,
				size: options.count ? options.count : this.sizeDefault,
				returnFields: this.returnFields
			};

			if (query && query.text) {