@fluxhub/fluxhub-lib 10.0.578 → 10.0.580

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.
@@ -22553,7 +22553,7 @@
22553
22553
  };
22554
22554
  dati_aggiuntivi_v2.prototype.prendi_in_carico = function () {
22555
22555
  this.in_carico = false;
22556
- this.update_status(null, null, this.in_carico);
22556
+ this.update_status(true, null, this.in_carico);
22557
22557
  var p = new QParam();
22558
22558
  p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
22559
22559
  p.types = ['string', 'string', 'string'];
@@ -23585,10 +23585,17 @@
23585
23585
  this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() ==
23586
23586
  this.livs[i].username.toUpperCase()) {
23587
23587
  console.log(' this.livs[i].step ', this.livs[i].step, this.livs[i].username.toUpperCase(), this.livs[i].context);
23588
- if (this.livs[i].context != null)
23589
- sv.push(this.livs[i].context);
23590
- else
23591
- sv.push("");
23588
+ var b_found = false;
23589
+ for (var y = 0; y < this.livs.length; y++)
23590
+ if (this.livs[y].context == this.livs[i].context) {
23591
+ b_found = true;
23592
+ break;
23593
+ }
23594
+ if (!b_found)
23595
+ if (this.livs[i].context != null)
23596
+ sv.push(this.livs[i].context);
23597
+ else
23598
+ sv.push("");
23592
23599
  }
23593
23600
  if (sv.length <= 1) {
23594
23601
  this.c_canale = sv[0];