@fluxhub/fluxhub-lib 10.0.517 → 10.0.519

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5490,11 +5490,12 @@
5490
5490
  p.filter = p.filter + " and ";
5491
5491
  p.filter = p.filter + " (" + _this.fix_flt + " )";
5492
5492
  }
5493
- if (_this.fix_flt_temp != "") {
5494
- if (p.filter != "")
5495
- p.filter = p.filter + " and ";
5496
- p.filter = p.filter + " (" + _this.fix_flt_temp + " )";
5497
- }
5493
+ if (_this.ric_libera == '' || !_this.over_fulltext)
5494
+ if (_this.fix_flt_temp != "") {
5495
+ if (p.filter != "")
5496
+ p.filter = p.filter + " and ";
5497
+ p.filter = p.filter + " (" + _this.fix_flt_temp + " )";
5498
+ }
5498
5499
  // console.log('Filter model');
5499
5500
  //console.log(params.filterModel);
5500
5501
  var p_fi = p.filter;
@@ -5624,6 +5625,9 @@
5624
5625
  filter_x = ' and (' + p.filter + ')';
5625
5626
  var px = new QParam();
5626
5627
  px.sql = _this.over_fulltext_sql;
5628
+ console.log('JSON.stringify(params.filterModel) ', JSON.stringify(params.filterModel));
5629
+ if (JSON.stringify(params.filterModel) == '{}')
5630
+ px.sql = _this.over_fulltext_sql + '_FT';
5627
5631
  px.types = ['string', 'string', 'string'];
5628
5632
  px.values = [_this.ric_libera, p.sort_field, filter_x];
5629
5633
  _this.over_fulltext_types.map(function (v) { px.types.push(v); });