@fluxhub/fluxhub-lib 19.0.258 → 19.0.259
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.
|
@@ -29702,6 +29702,12 @@ class FHWorkflowView {
|
|
|
29702
29702
|
pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
|
|
29703
29703
|
this.m_dataService.doQuery(pl).subscribe((dl) => {
|
|
29704
29704
|
let lettori_correnti = '';
|
|
29705
|
+
// Anche oggetto e descrizione dal DB: se la grid non li espone nei _FIELDS
|
|
29706
|
+
// sRow.oggetto e' undefined e INSERT_TODO_GEST fallisce (oggetto NOT NULL).
|
|
29707
|
+
const doc = dl != null && dl.result_msg == 'OK' &&
|
|
29708
|
+
dl.result_data != null && dl.result_data.length > 0
|
|
29709
|
+
? dl.result_data[0]
|
|
29710
|
+
: null;
|
|
29705
29711
|
if (dl != null && dl.result_msg == 'OK' &&
|
|
29706
29712
|
dl.result_data != null && dl.result_data.length > 0 &&
|
|
29707
29713
|
dl.result_data[0].lettori != null) {
|
|
@@ -29711,11 +29717,14 @@ class FHWorkflowView {
|
|
|
29711
29717
|
// Fallback al comportamento storico se la query non e' disponibile.
|
|
29712
29718
|
lettori_correnti = this.get_grid().sRow.lettori;
|
|
29713
29719
|
}
|
|
29714
|
-
this.riassegna_richiesta_step2_exec(lettori_correnti);
|
|
29720
|
+
this.riassegna_richiesta_step2_exec(lettori_correnti, doc);
|
|
29715
29721
|
});
|
|
29716
29722
|
}
|
|
29717
|
-
riassegna_richiesta_step2_exec(lettori_correnti) {
|
|
29723
|
+
riassegna_richiesta_step2_exec(lettori_correnti, doc = null) {
|
|
29718
29724
|
let a_let = lettori_correnti || '';
|
|
29725
|
+
const sRow = this.get_grid().sRow;
|
|
29726
|
+
const oggetto = sRow.oggetto ?? doc?.oggetto ?? sRow.codice ?? '';
|
|
29727
|
+
const descrizione = sRow.descrizione ?? doc?.descrizione ?? '';
|
|
29719
29728
|
let op = [];
|
|
29720
29729
|
let app_op = new QParam();
|
|
29721
29730
|
app_op.sql = 'DELETE_TODO_ALL_BYID';
|
|
@@ -29747,9 +29756,9 @@ class FHWorkflowView {
|
|
|
29747
29756
|
this.id_applicativo,
|
|
29748
29757
|
this.get_grid().sRow.uiid,
|
|
29749
29758
|
this.wax[i].username,
|
|
29750
|
-
|
|
29759
|
+
oggetto,
|
|
29751
29760
|
this.title,
|
|
29752
|
-
|
|
29761
|
+
descrizione,
|
|
29753
29762
|
this.app_s.COMPANY_SITE_ROOT +
|
|
29754
29763
|
'/#/' +
|
|
29755
29764
|
this.app_root +
|