@fluxhub/fluxhub-lib 19.0.259 → 19.0.261

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.
@@ -27735,6 +27735,10 @@ class WkfService {
27735
27735
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
27736
27736
  });
27737
27737
  this.url = this.app_s.API_ENDPOINT + this.app_s.WKF_ENDPOINT;
27738
+ // il backend Node valida values come array di stringhe: un null (nota o cc non
27739
+ // valorizzati) fa rispondere 500 a dowkf e la mail non parte
27740
+ if ((queryp.sql == "send_wkf_mail" || queryp.sql == "send_mail") && queryp.values)
27741
+ queryp.values = queryp.values.map((v) => (v == null ? "" : "" + v));
27738
27742
  let post_v = JSON.stringify(queryp);
27739
27743
  return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
27740
27744
  // Handle errors, display if enabled
@@ -34780,7 +34784,7 @@ class FHWorkflowForm {
34780
34784
  ' ' +
34781
34785
  this.m_obj.codice +
34782
34786
  ' - ' +
34783
- this.tsr.instant(this.m_obj.stat_stato));
34787
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
34784
34788
  if (this.m_obj.assegnati_paralleli != null)
34785
34789
  if (this.m_obj.assegnati_paralleli.split(',').length != 1)
34786
34790
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
@@ -35949,7 +35953,7 @@ class FHWorkflowForm {
35949
35953
  ' ' +
35950
35954
  this.m_obj.codice +
35951
35955
  ' - ' +
35952
- this.tsr.instant(this.m_obj.stat_stato));
35956
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
35953
35957
  else
35954
35958
  this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
35955
35959
  ' ' +
@@ -35957,12 +35961,12 @@ class FHWorkflowForm {
35957
35961
  '/' +
35958
35962
  this.m_obj.v +
35959
35963
  ' - ' +
35960
- this.tsr.instant(this.m_obj.stat_stato));
35964
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
35961
35965
  this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
35962
35966
  ' ' +
35963
35967
  this.m_obj.codice +
35964
35968
  ' - ' +
35965
- this.tsr.instant(this.m_obj.stat_stato));
35969
+ (this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
35966
35970
  this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
35967
35971
  });
35968
35972
  //+' ('+s_uto+')');