@fluxhub/fluxhub-lib 1.0.492 → 1.0.494

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.
@@ -16098,18 +16098,18 @@
16098
16098
  liv = this.wkf_rule(cliv);
16099
16099
  /** @type {?} */
16100
16100
  var bfound = false;
16101
- for (var i = 0; i < this.livs.length; i++)
16102
- if (this.livs[i].notifica == 0 && (this.clevel.gruppo_parallelo == "" || this.clevel.gruppo_parallelo == this.livs[i].gruppo_parallelo))
16103
- if (this.livs[i].livello == liv) {
16104
- this.nlevel = this.livs[i];
16105
- liv = this.livs[i].livello;
16101
+ for (var i_2 = 0; i_2 < this.livs.length; i_2++)
16102
+ if (this.livs[i_2].notifica == 0 && (this.clevel.gruppo_parallelo == "" || this.clevel.gruppo_parallelo == this.livs[i_2].gruppo_parallelo))
16103
+ if (this.livs[i_2].livello == liv) {
16104
+ this.nlevel = this.livs[i_2];
16105
+ liv = this.livs[i_2].livello;
16106
16106
  bfound = true;
16107
16107
  }
16108
16108
  if (!bfound)
16109
- for (var i = 0; i < this.livs.length; i++)
16110
- if (this.livs[i].livello == liv && this.livs[i].notifica == 0) {
16111
- this.nlevel = this.livs[i];
16112
- liv = this.livs[i].livello;
16109
+ for (var i_3 = 0; i_3 < this.livs.length; i_3++)
16110
+ if (this.livs[i_3].livello == liv && this.livs[i_3].notifica == 0) {
16111
+ this.nlevel = this.livs[i_3];
16112
+ liv = this.livs[i_3].livello;
16113
16113
  break;
16114
16114
  }
16115
16115
  /** @type {?} */
@@ -16413,7 +16413,7 @@
16413
16413
  this.m_autori,
16414
16414
  this.m_danotificare,
16415
16415
  this.m_obj.codice + " - " + this.getTitle(),
16416
- this.getTitle() + "Il documento: " + this.m_obj.codice + " è passata allo stato: " + this.m_statox,
16416
+ this.getTitle() + "Il documento: " + this.m_obj.codice + " è passato allo stato: " + this.m_statox,
16417
16417
  this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
16418
16418
  "In approvazione",
16419
16419
  this.getDescri(), this.user_idp, this.m_statox, this.m_oper, this.id_applicativo, this.id_documento, '' + this.m_crea_att, '' + this.m_send_email, '' + this.clevel.livello, '' + this.nlevel.livello];
@@ -16490,6 +16490,14 @@
16490
16490
  else {
16491
16491
  /** @type {?} */
16492
16492
  var s_ogg = this.nlevel.oggetto_email;
16493
+ if (this.nlevel != null)
16494
+ if (this.nlevel.descri_livello != null)
16495
+ s_ogg = s_ogg.split('%new_step%').join(this.nlevel.descri_livello);
16496
+ if (this.clevel != null)
16497
+ if (this.clevel.descri_livello != null)
16498
+ s_ogg = s_ogg.split('%old_step%').join(this.clevel.descri_livello);
16499
+ s_ogg = s_ogg.split('%new_step%').join('');
16500
+ s_ogg = s_ogg.split('%old_step%').join('');
16493
16501
  for (var prop in this.m_obj)
16494
16502
  if (this.m_obj[prop] != null) {
16495
16503
  console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));