@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.
@@ -17037,13 +17037,14 @@ class dati_aggiuntivi {
17037
17037
  if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
17038
17038
  if (!(arrd[i].val == arrd[i].oldVal))
17039
17039
  if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
17040
- if (!(arrd[i].val instanceof Date))
17041
- flt.push(arrd[i]);
17040
+ if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
17041
+ if (!(arrd[i].val instanceof Date))
17042
+ flt.push(arrd[i]);
17042
17043
  for (let i = 0; i < arrd.length; i++)
17043
17044
  if (arrd[i].val instanceof Date)
17044
17045
  if (new Date(arrd[i].val).getTime() != new Date(arrd[i].oldVal).getTime())
17045
17046
  flt.push(arrd[i]);
17046
- console.log('arrx ', flt);
17047
+ console.log('arrx ', flt, edit_button, !edit_button || flt.length == 0);
17047
17048
  if (!edit_button || flt.length == 0)
17048
17049
  this.m_router.navigate([this.app_info.modulo_swf]);
17049
17050
  else {
@@ -24207,13 +24208,14 @@ class dati_aggiuntivi_v2 {
24207
24208
  if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
24208
24209
  if (!(arrd[i].val == arrd[i].oldVal))
24209
24210
  if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
24210
- if (!(arrd[i].val instanceof Date))
24211
- flt.push(arrd[i]);
24211
+ if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
24212
+ if (!(arrd[i].val instanceof Date))
24213
+ flt.push(arrd[i]);
24212
24214
  for (let i = 0; i < arrd.length; i++)
24213
24215
  if (arrd[i].val instanceof Date)
24214
24216
  if (new Date(arrd[i].val).getTime() != new Date(arrd[i].oldVal).getTime())
24215
24217
  flt.push(arrd[i]);
24216
- console.log('arrx ', flt);
24218
+ console.log('arrx ', flt, edit_button, !edit_button || flt.length == 0);
24217
24219
  if (!edit_button || flt.length == 0)
24218
24220
  this.m_router.navigate([this.app_info.modulo_swf]);
24219
24221
  else {