@fluxhub/fluxhub-lib 10.0.748 → 10.0.750

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.
@@ -24411,6 +24411,7 @@
24411
24411
  _this.m_dataService.doQuery(p_1).subscribe(function (datav) {
24412
24412
  if (datav != null)
24413
24413
  if (datav.result_msg == "OK") {
24414
+ console.log("SELECT_WKF_VARIABILES_V2 ", datav.result_data);
24414
24415
  datav.result_data.push({
24415
24416
  k: "*CURRENT_USER",
24416
24417
  v: _this.app_s.user,
@@ -24422,17 +24423,19 @@
24422
24423
  v: _this.app_s.user,
24423
24424
  nc: _this.app_s.user_surname + " " + _this.app_s.user_name,
24424
24425
  });
24425
- else
24426
- datav.result_data.map(function (v1) {
24427
- console.log('v1 ', v1);
24428
- if ("REQUESTER" == v1.k.split("CREATOR").join("REQUESTER"))
24426
+ else {
24427
+ for (var ix = 0; ix < datav.result_data.length; ix++) {
24428
+ if (datav.result_data[ix].k.split("CREATOR").join("REQUESTER") == 'REQUESTER') {
24429
24429
  datav.result_data.push({
24430
24430
  k: "*ALLUSERS",
24431
- v: v1.v,
24432
- nc: v1.nc,
24431
+ v: datav.result_data[ix].v,
24432
+ nc: datav.result_data[ix].nc,
24433
24433
  });
24434
- return true;
24435
- });
24434
+ break;
24435
+ }
24436
+ }
24437
+ }
24438
+ console.log("SELECT_WKF_VARIABILES_V2 dopo add ", datav.result_data);
24436
24439
  data.result_data.map(function (v) {
24437
24440
  if (v.value.indexOf("*") == 0) {
24438
24441
  v.context = _this.m_obj.canale;
@@ -24441,12 +24444,7 @@
24441
24444
  datav.result_data.map(function (v1) {
24442
24445
  if (v.value.split("CREATOR").join("REQUESTER") ==
24443
24446
  v1.k.split("CREATOR").join("REQUESTER")) {
24444
- if (_this.m_obj.stato != null || _this.m_obj.stato > 10)
24445
- datav.result_data.push({
24446
- k: "*ALLUSERS",
24447
- v: v1.v,
24448
- nc: v1.nc,
24449
- });
24447
+ console.log("sostituisco k: ", v1.k, v1.v);
24450
24448
  v.username = v1.v;
24451
24449
  v.nc = v1.nc;
24452
24450
  v.ncx = v1.nc;
@@ -24462,6 +24460,7 @@
24462
24460
  });
24463
24461
  };
24464
24462
  dati_aggiuntivi_v2.prototype.ok_livelli_doc = function (r) {
24463
+ console.log();
24465
24464
  this.livs = r;
24466
24465
  this.over_canale_iniz();
24467
24466
  if (this.m_obj.stato <= 10)