@fluxhub/fluxhub-lib 21.0.14 → 21.0.16

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.
@@ -15081,6 +15081,10 @@ class WkfService {
15081
15081
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
15082
15082
  });
15083
15083
  this.url = this.app_s.API_ENDPOINT + this.app_s.WKF_ENDPOINT;
15084
+ // il backend Node valida values come array di stringhe: un null (nota o cc non
15085
+ // valorizzati) fa rispondere 500 a dowkf e la mail non parte
15086
+ if ((queryp.sql == "send_wkf_mail" || queryp.sql == "send_mail") && queryp.values)
15087
+ queryp.values = queryp.values.map((v) => (v == null ? "" : "" + v));
15084
15088
  let post_v = JSON.stringify(queryp);
15085
15089
  return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
15086
15090
  // Handle errors, display if enabled
@@ -35442,7 +35446,7 @@ class FHWorkflowForm {
35442
35446
  ' ' +
35443
35447
  this.m_obj.codice +
35444
35448
  ' - ' +
35445
- this.tsr.instant(this.m_obj.stat_stato));
35449
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
35446
35450
  else
35447
35451
  this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
35448
35452
  ' ' +
@@ -35450,12 +35454,12 @@ class FHWorkflowForm {
35450
35454
  '/' +
35451
35455
  this.m_obj.v +
35452
35456
  ' - ' +
35453
- this.tsr.instant(this.m_obj.stat_stato));
35457
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
35454
35458
  this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
35455
35459
  ' ' +
35456
35460
  this.m_obj.codice +
35457
35461
  ' - ' +
35458
- this.tsr.instant(this.m_obj.stat_stato));
35462
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
35459
35463
  this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
35460
35464
  });
35461
35465
  //+' ('+s_uto+')');