@fluxhub/fluxhub-lib 10.0.605 → 10.0.607

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;
@@ -15534,19 +15542,22 @@
15534
15542
  for (var i = 0; i < _this.logs.length; i++) {
15535
15543
  if (_this.logs[i].liv_ini != null
15536
15544
  && _this.logs[i].liv_fin != null) {
15537
- for (var ixx = 0; ixx < 5; ixx++) {
15538
- var idj = '';
15539
- if (ixx == 0)
15540
- idj = _this.logs[i].liv_ini + '_' + _this.logs[i].liv_fin;
15541
- else
15542
- idj = _this.logs[i].liv_ini + '_' + _this.logs[i].liv_fin + '_' + ixx;
15543
- console.log('sostituisco ', idj);
15544
- data.result_data[0].diagramma_flusso = data.result_data[0].diagramma_flusso
15545
- .split('bpmnElement="LINK_' + idj + '"')
15546
- .join('bpmnElement="LINK_' +
15547
- idj +
15548
- '" bioc:stroke="#1E88E5" bioc:fill="#BBDEFB"');
15549
- }
15545
+ // for(let ixx:number=0;ixx<5;ixx++){
15546
+ var idj = '';
15547
+ idj = _this.logs[i].liv_ini + '_' + _this.logs[i].liv_fin;
15548
+ // else idj=this.logs[i].liv_ini +'_'+ this.logs[i].liv_fin+'_'+ixx;
15549
+ console.log('sostituisco ', idj);
15550
+ data.result_data[0].diagramma_flusso = data.result_data[0].diagramma_flusso
15551
+ .split('bpmnElement="LINK_' + idj + '"')
15552
+ .join('bpmnElement="LINK_' +
15553
+ idj +
15554
+ '" bioc:stroke="#1E88E5" bioc:fill="#BBDEFB"');
15555
+ data.result_data[0].diagramma_flusso = data.result_data[0].diagramma_flusso
15556
+ .split('bpmnElement="LINK_EXIT_' + _this.logs[i].liv_ini + '"')
15557
+ .join('bpmnElement="LINK_EXIT_' +
15558
+ _this.logs[i].liv_ini +
15559
+ '" bioc:stroke="#1E88E5" bioc:fill="#BBDEFB"');
15560
+ //}
15550
15561
  }
15551
15562
  if (_this.logs[i].id_comment == -1) {
15552
15563
  if (_this.logs[i].liv_ini != null)
@@ -19757,7 +19768,11 @@
19757
19768
  this.user_email = this.app_s.user_email;
19758
19769
  return;
19759
19770
  }
19760
- var obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19771
+ var obj = null;
19772
+ try {
19773
+ obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19774
+ }
19775
+ catch (e) { }
19761
19776
  if (obj == null) {
19762
19777
  this.user_idp = this.app_s.user;
19763
19778
  this.user_nome = this.app_s.user_name;