@fluxhub/fluxhub-lib 19.0.260 → 19.0.262

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
@@ -29924,7 +29928,12 @@ class FHWorkflowView {
29924
29928
  p = new QParam();
29925
29929
  p.sql = 'UPDATE_RIASSEGNA_TODO';
29926
29930
  p.types = ['string', 'string'];
29927
- p.values = [this.wax[0].idp, this.get_grid().sRow.uiid];
29931
+ // Gli attori del picker portano sempre username (idp solo se vengono dai livelli):
29932
+ // con idp null la sottoquery dava username null sul todo (WBA-10).
29933
+ p.values = [
29934
+ this.wax[0].username || this.wax[0].idp,
29935
+ this.get_grid().sRow.uiid,
29936
+ ];
29928
29937
  ok_op = false;
29929
29938
  this.m_dataService.doQuery(p).subscribe((data) => {
29930
29939
  if (data != null)