@fluxhub/fluxhub-lib 10.0.606 → 10.0.608

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.
@@ -7378,8 +7378,12 @@
7378
7378
  }
7379
7379
  if (this.valDef == null)
7380
7380
  this.dis_value = "";
7381
- else
7382
- this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
7381
+ else {
7382
+ if (this.valDef.split("-1").join("") != '')
7383
+ this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
7384
+ else
7385
+ this.dis_value = "";
7386
+ }
7383
7387
  }
7384
7388
  catch (e) {
7385
7389
  //console.log("errore split -> this.valDef ", this.valDef);
@@ -7638,8 +7642,12 @@
7638
7642
  }
7639
7643
  this.setByValue(this.valDef);
7640
7644
  this.is_loaded = true;
7641
- if (this.getValue() == "-1")
7642
- this.setByDescri(this._tsr.instant(this.valDef));
7645
+ if (this.getValue() == "-1") {
7646
+ if (this.valDef != '')
7647
+ this.setByDescri(this._tsr.instant(this.valDef));
7648
+ else
7649
+ this.setByDescri(this.valDef);
7650
+ }
7643
7651
  };
7644
7652
  FHComboboxComponent.prototype.doFill = function () {
7645
7653
  var _this = this;
@@ -19427,7 +19435,11 @@
19427
19435
  wkfapp.prototype.ripristina_imp = function () {
19428
19436
  if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
19429
19437
  return;
19430
- var obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19438
+ var obj = null;
19439
+ try {
19440
+ obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19441
+ }
19442
+ catch (e) { }
19431
19443
  if (obj == null)
19432
19444
  return;
19433
19445
  this.app_s.user_name_ori = this.app_s.user_name;
@@ -19760,7 +19772,11 @@
19760
19772
  this.user_email = this.app_s.user_email;
19761
19773
  return;
19762
19774
  }
19763
- var obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19775
+ var obj = null;
19776
+ try {
19777
+ obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19778
+ }
19779
+ catch (e) { }
19764
19780
  if (obj == null) {
19765
19781
  this.user_idp = this.app_s.user;
19766
19782
  this.user_nome = this.app_s.user_name;
@@ -22515,7 +22531,11 @@
22515
22531
  wkfapp_v2.prototype.ripristina_imp = function () {
22516
22532
  if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
22517
22533
  return;
22518
- var obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
22534
+ var obj = null;
22535
+ try {
22536
+ obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
22537
+ }
22538
+ catch (e) { }
22519
22539
  if (obj == null)
22520
22540
  return;
22521
22541
  this.app_s.user_name_ori = this.app_s.user_name;