@fluxhub/fluxhub-lib 22.0.24 → 22.0.25
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.
|
@@ -31992,6 +31992,12 @@ class FHWorkflowView {
|
|
|
31992
31992
|
pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
|
|
31993
31993
|
this.m_dataService.doQuery(pl).subscribe((dl) => {
|
|
31994
31994
|
let lettori_correnti = '';
|
|
31995
|
+
// Anche oggetto e descrizione dal DB: se la grid non li espone nei _FIELDS
|
|
31996
|
+
// sRow.oggetto e' undefined e INSERT_TODO_GEST fallisce (oggetto NOT NULL).
|
|
31997
|
+
const doc = dl != null && dl.result_msg == 'OK' &&
|
|
31998
|
+
dl.result_data != null && dl.result_data.length > 0
|
|
31999
|
+
? dl.result_data[0]
|
|
32000
|
+
: null;
|
|
31995
32001
|
if (dl != null && dl.result_msg == 'OK' &&
|
|
31996
32002
|
dl.result_data != null && dl.result_data.length > 0 &&
|
|
31997
32003
|
dl.result_data[0].lettori != null) {
|
|
@@ -32001,11 +32007,14 @@ class FHWorkflowView {
|
|
|
32001
32007
|
// Fallback al comportamento storico se la query non e' disponibile.
|
|
32002
32008
|
lettori_correnti = this.get_grid().sRow.lettori;
|
|
32003
32009
|
}
|
|
32004
|
-
this.riassegna_richiesta_step2_exec(lettori_correnti);
|
|
32010
|
+
this.riassegna_richiesta_step2_exec(lettori_correnti, doc);
|
|
32005
32011
|
});
|
|
32006
32012
|
}
|
|
32007
|
-
riassegna_richiesta_step2_exec(lettori_correnti) {
|
|
32013
|
+
riassegna_richiesta_step2_exec(lettori_correnti, doc = null) {
|
|
32008
32014
|
let a_let = lettori_correnti || '';
|
|
32015
|
+
const sRow = this.get_grid().sRow;
|
|
32016
|
+
const oggetto = sRow.oggetto ?? doc?.oggetto ?? sRow.codice ?? '';
|
|
32017
|
+
const descrizione = sRow.descrizione ?? doc?.descrizione ?? '';
|
|
32009
32018
|
let op = [];
|
|
32010
32019
|
let app_op = new QParam();
|
|
32011
32020
|
app_op.sql = 'DELETE_TODO_ALL_BYID';
|
|
@@ -32037,9 +32046,9 @@ class FHWorkflowView {
|
|
|
32037
32046
|
this.id_applicativo,
|
|
32038
32047
|
this.get_grid().sRow.uiid,
|
|
32039
32048
|
this.wax[i].username,
|
|
32040
|
-
|
|
32049
|
+
oggetto,
|
|
32041
32050
|
this.title,
|
|
32042
|
-
|
|
32051
|
+
descrizione,
|
|
32043
32052
|
this.app_s.COMPANY_SITE_ROOT +
|
|
32044
32053
|
'/#/' +
|
|
32045
32054
|
this.app_root +
|