@fluxhub/fluxhub-lib 9.0.111 → 9.0.113

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.
@@ -5751,7 +5751,6 @@ let FHGridComponent = class FHGridComponent {
5751
5751
  }
5752
5752
  if (obj_filtro.dateTo != null || obj_filtro.dateFrom != null) {
5753
5753
  b_filter = true;
5754
- console.log('ENTRO: ', obj_filtro.dateFrom, obj_filtro.type, 'conv: ', this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)));
5755
5754
  if (add_end)
5756
5755
  filter_v = filter_v + ' and ';
5757
5756
  filter_v = filter_v + ' (';
@@ -5775,7 +5774,6 @@ let FHGridComponent = class FHGridComponent {
5775
5774
  q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5776
5775
  if (obj_filtro.type == "greaterThanOrEqual")
5777
5776
  q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5778
- console.log('LOG DT: ', obj_filtro, ' -> ', q);
5779
5777
  filter_v = filter_v + q;
5780
5778
  }
5781
5779
  else
@@ -5785,7 +5783,7 @@ let FHGridComponent = class FHGridComponent {
5785
5783
  }
5786
5784
  else {
5787
5785
  // if(obj_filtro.length>0)filter_v= filter_v+' and ';
5788
- let sq = "";
5786
+ let sq = '';
5789
5787
  if (obj_filtro.values != null)
5790
5788
  for (let i = 0; i < obj_filtro.values.length; i++)
5791
5789
  if (obj_filtro.values[i] != null) {
@@ -5801,8 +5799,9 @@ let FHGridComponent = class FHGridComponent {
5801
5799
  }
5802
5800
  else {
5803
5801
  b_filter = true;
5804
- if (filter_v != "")
5805
- filter_v = filter_v + ' and 1=0';
5802
+ if (add_end)
5803
+ filter_v = filter_v + ' and ';
5804
+ filter_v = filter_v + ' (1=0)';
5806
5805
  }
5807
5806
  }
5808
5807
  this.show_pulisci_filtri = b_filter;