@fluxhub/fluxhub-lib 19.0.257 → 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.
@@ -29656,6 +29656,10 @@ class FHWorkflowView {
29656
29656
  if (arrAutori[i].idp != null && arrAutori[i].username == null)
29657
29657
  arrAutori[i].username = arrAutori[i].idp;
29658
29658
  }
29659
+ // Un attore '*...' la cui variabile non si risolve (o *SYSTEM) resta senza
29660
+ // username: nel picker sarebbe una riga vuota e sceglierlo scriverebbe un
29661
+ // todo con username null (WBA-8).
29662
+ arrAutori = arrAutori.filter((a) => a.username != null && a.username != '');
29659
29663
  setTimeout(() => {
29660
29664
  dialogRef.componentInstance.arrAutori = arrAutori;
29661
29665
  dialogRef.componentInstance.title =
@@ -29698,6 +29702,12 @@ class FHWorkflowView {
29698
29702
  pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
29699
29703
  this.m_dataService.doQuery(pl).subscribe((dl) => {
29700
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;
29701
29711
  if (dl != null && dl.result_msg == 'OK' &&
29702
29712
  dl.result_data != null && dl.result_data.length > 0 &&
29703
29713
  dl.result_data[0].lettori != null) {
@@ -29707,11 +29717,14 @@ class FHWorkflowView {
29707
29717
  // Fallback al comportamento storico se la query non e' disponibile.
29708
29718
  lettori_correnti = this.get_grid().sRow.lettori;
29709
29719
  }
29710
- this.riassegna_richiesta_step2_exec(lettori_correnti);
29720
+ this.riassegna_richiesta_step2_exec(lettori_correnti, doc);
29711
29721
  });
29712
29722
  }
29713
- riassegna_richiesta_step2_exec(lettori_correnti) {
29723
+ riassegna_richiesta_step2_exec(lettori_correnti, doc = null) {
29714
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 ?? '';
29715
29728
  let op = [];
29716
29729
  let app_op = new QParam();
29717
29730
  app_op.sql = 'DELETE_TODO_ALL_BYID';
@@ -29743,9 +29756,9 @@ class FHWorkflowView {
29743
29756
  this.id_applicativo,
29744
29757
  this.get_grid().sRow.uiid,
29745
29758
  this.wax[i].username,
29746
- this.get_grid().sRow.oggetto,
29759
+ oggetto,
29747
29760
  this.title,
29748
- this.get_grid().sRow.descrizione,
29761
+ descrizione,
29749
29762
  this.app_s.COMPANY_SITE_ROOT +
29750
29763
  '/#/' +
29751
29764
  this.app_root +