@fluxhub/fluxhub-lib 22.0.23 → 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.
@@ -31946,6 +31946,10 @@ class FHWorkflowView {
31946
31946
  if (arrAutori[i].idp != null && arrAutori[i].username == null)
31947
31947
  arrAutori[i].username = arrAutori[i].idp;
31948
31948
  }
31949
+ // Un attore '*...' la cui variabile non si risolve (o *SYSTEM) resta senza
31950
+ // username: nel picker sarebbe una riga vuota e sceglierlo scriverebbe un
31951
+ // todo con username null (WBA-8).
31952
+ arrAutori = arrAutori.filter((a) => a.username != null && a.username != '');
31949
31953
  setTimeout(() => {
31950
31954
  dialogRef.componentInstance.arrAutori = arrAutori;
31951
31955
  dialogRef.componentInstance.title =
@@ -31988,6 +31992,12 @@ class FHWorkflowView {
31988
31992
  pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
31989
31993
  this.m_dataService.doQuery(pl).subscribe((dl) => {
31990
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;
31991
32001
  if (dl != null && dl.result_msg == 'OK' &&
31992
32002
  dl.result_data != null && dl.result_data.length > 0 &&
31993
32003
  dl.result_data[0].lettori != null) {
@@ -31997,11 +32007,14 @@ class FHWorkflowView {
31997
32007
  // Fallback al comportamento storico se la query non e' disponibile.
31998
32008
  lettori_correnti = this.get_grid().sRow.lettori;
31999
32009
  }
32000
- this.riassegna_richiesta_step2_exec(lettori_correnti);
32010
+ this.riassegna_richiesta_step2_exec(lettori_correnti, doc);
32001
32011
  });
32002
32012
  }
32003
- riassegna_richiesta_step2_exec(lettori_correnti) {
32013
+ riassegna_richiesta_step2_exec(lettori_correnti, doc = null) {
32004
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 ?? '';
32005
32018
  let op = [];
32006
32019
  let app_op = new QParam();
32007
32020
  app_op.sql = 'DELETE_TODO_ALL_BYID';
@@ -32033,9 +32046,9 @@ class FHWorkflowView {
32033
32046
  this.id_applicativo,
32034
32047
  this.get_grid().sRow.uiid,
32035
32048
  this.wax[i].username,
32036
- this.get_grid().sRow.oggetto,
32049
+ oggetto,
32037
32050
  this.title,
32038
- this.get_grid().sRow.descrizione,
32051
+ descrizione,
32039
32052
  this.app_s.COMPANY_SITE_ROOT +
32040
32053
  '/#/' +
32041
32054
  this.app_root +