@fluxhub/fluxhub-lib 22.0.28 → 22.0.30
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.
|
@@ -30043,6 +30043,10 @@ class WkfService {
|
|
|
30043
30043
|
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
30044
30044
|
});
|
|
30045
30045
|
this.url = this.app_s.API_ENDPOINT + this.app_s.WKF_ENDPOINT;
|
|
30046
|
+
// il backend Node valida values come array di stringhe: un null (nota o cc non
|
|
30047
|
+
// valorizzati) fa rispondere 500 a dowkf e la mail non parte
|
|
30048
|
+
if ((queryp.sql == "send_wkf_mail" || queryp.sql == "send_mail") && queryp.values)
|
|
30049
|
+
queryp.values = queryp.values.map((v) => (v == null ? "" : "" + v));
|
|
30046
30050
|
let post_v = JSON.stringify(queryp);
|
|
30047
30051
|
return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
|
|
30048
30052
|
// Handle errors, display if enabled
|
|
@@ -32253,7 +32257,12 @@ class FHWorkflowView {
|
|
|
32253
32257
|
p = new QParam();
|
|
32254
32258
|
p.sql = 'UPDATE_RIASSEGNA_TODO';
|
|
32255
32259
|
p.types = ['string', 'string'];
|
|
32256
|
-
|
|
32260
|
+
// Gli attori del picker portano sempre username (idp solo se vengono dai livelli):
|
|
32261
|
+
// con idp null la sottoquery dava username null sul todo (WBA-10).
|
|
32262
|
+
p.values = [
|
|
32263
|
+
this.wax[0].username || this.wax[0].idp,
|
|
32264
|
+
this.get_grid().sRow.uiid,
|
|
32265
|
+
];
|
|
32257
32266
|
ok_op = false;
|
|
32258
32267
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
32259
32268
|
if (data != null)
|