@fluxhub/fluxhub-lib 10.0.486 → 10.0.487

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.
@@ -17835,13 +17835,14 @@
17835
17835
  if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
17836
17836
  if (!(arrd[i].val == arrd[i].oldVal))
17837
17837
  if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
17838
- if (!(arrd[i].val instanceof Date))
17839
- flt.push(arrd[i]);
17838
+ if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
17839
+ if (!(arrd[i].val instanceof Date))
17840
+ flt.push(arrd[i]);
17840
17841
  for (var i = 0; i < arrd.length; i++)
17841
17842
  if (arrd[i].val instanceof Date)
17842
17843
  if (new Date(arrd[i].val).getTime() != new Date(arrd[i].oldVal).getTime())
17843
17844
  flt.push(arrd[i]);
17844
- console.log('arrx ', flt);
17845
+ console.log('arrx ', flt, edit_button, !edit_button || flt.length == 0);
17845
17846
  if (!edit_button || flt.length == 0)
17846
17847
  this.m_router.navigate([this.app_info.modulo_swf]);
17847
17848
  else {
@@ -20840,13 +20841,14 @@
20840
20841
  if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
20841
20842
  if (!(arrd[i].val == arrd[i].oldVal))
20842
20843
  if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
20843
- if (!(arrd[i].val instanceof Date))
20844
- flt.push(arrd[i]);
20844
+ if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
20845
+ if (!(arrd[i].val instanceof Date))
20846
+ flt.push(arrd[i]);
20845
20847
  for (var i = 0; i < arrd.length; i++)
20846
20848
  if (arrd[i].val instanceof Date)
20847
20849
  if (new Date(arrd[i].val).getTime() != new Date(arrd[i].oldVal).getTime())
20848
20850
  flt.push(arrd[i]);
20849
- console.log('arrx ', flt);
20851
+ console.log('arrx ', flt, edit_button, !edit_button || flt.length == 0);
20850
20852
  if (!edit_button || flt.length == 0)
20851
20853
  this.m_router.navigate([this.app_info.modulo_swf]);
20852
20854
  else {