@fluxhub/fluxhub-lib 11.0.99 → 11.0.101

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.
@@ -9147,11 +9147,14 @@ class FHUploadComponent {
9147
9147
  form.append('username', this.app_s.user);
9148
9148
  form.append('ver', this.ver);
9149
9149
  // console.log('this.app_s.user ', this.app_s.user);
9150
- if ((this.multi_list && this.show_upload) || this.direct_type)
9150
+ if ((this.multi_list && this.show_upload) || this.direct_type) {
9151
9151
  if (this.cmb_tipo && !this.direct_type)
9152
9152
  form.append('tipo', (this.cmb_tipo.getDescri() || '').split('-1').join(''));
9153
9153
  else
9154
9154
  form.append('tipo', this.tipo);
9155
+ }
9156
+ else
9157
+ form.append('tipo', '');
9155
9158
  form.append('local_path', this.app_s.LOCAL_PATH);
9156
9159
  if (this.programma_da_eseguire != '')
9157
9160
  form.append('p1', this.programma_da_eseguire);
@@ -25398,7 +25401,7 @@ class dati_aggiuntivi_v2 {
25398
25401
  for (let i = 0; i < this.livs.length; i++)
25399
25402
  if (this.livs[i].step == liv) {
25400
25403
  console.log(' liv ', this.livs[i]);
25401
- if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase()) {
25404
+ if (this.user_idp.toUpperCase() == (this.livs[i].username || 'ND').toUpperCase()) {
25402
25405
  console.log(this.m_obj.canale + ' ' + this.livs[i].context);
25403
25406
  if (this.m_obj.canale == this.livs[i].context) {
25404
25407
  console.log('clevel 1 ', this.livs[i]);
@@ -25414,7 +25417,7 @@ class dati_aggiuntivi_v2 {
25414
25417
  this.livs[i].username = 'ZZZ';
25415
25418
  if (this.livs[i].step == liv) {
25416
25419
  if (this.livs[i].context == '*ALLUSERS' ||
25417
- this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase()) {
25420
+ this.user_idp.toUpperCase() == (this.livs[i].username || 'ND').toUpperCase()) {
25418
25421
  if (this.c_canale == '' ||
25419
25422
  this.livs[i].context == '' ||
25420
25423
  this.c_canale == this.livs[i].context ||
@@ -25440,7 +25443,7 @@ class dati_aggiuntivi_v2 {
25440
25443
  liv = this.clevel.livello;
25441
25444
  for (let i = 0; i < this.livs.length; i++)
25442
25445
  if (this.user_idp.toUpperCase() ==
25443
- this.livs[i].username.toUpperCase() &&
25446
+ (this.livs[i].username || 'ND').toUpperCase() &&
25444
25447
  this.livs[i].notifica == 0)
25445
25448
  if (this.livs[i].step > liv &&
25446
25449
  liv != 0 &&
@@ -25453,7 +25456,7 @@ class dati_aggiuntivi_v2 {
25453
25456
  var aliv = this.wkf_rule(liv);
25454
25457
  for (let ixc = 0; ixc < this.livs.length; ixc++) {
25455
25458
  if (this.livs[ixc].livello == aliv &&
25456
- this.user_idp.toUpperCase() == this.livs[ixc].idp.toUpperCase() &&
25459
+ this.user_idp.toUpperCase() == (this.livs[ixc].username || 'ND').toUpperCase() &&
25457
25460
  (this.c_canale == '' ||
25458
25461
  this.livs[ixc].context == '' ||
25459
25462
  this.c_canale == this.livs[ixc].context)) {
@@ -26639,7 +26642,7 @@ class dati_aggiuntivi_v2 {
26639
26642
  this.over_canale_iniz();
26640
26643
  if (this.m_obj.stato <= 10)
26641
26644
  for (let i = 0; i < this.livs.length; i++)
26642
- if (this.livs[i].username.toUpperCase() == this.user_idp.toUpperCase() ||
26645
+ if ((this.livs[i].username || 'ND').toUpperCase() == this.user_idp.toUpperCase() ||
26643
26646
  this.livs[i].context == '*ALLUSERS')
26644
26647
  if (this.livs[i].step == 10 && this.livs[i].notifica == 0) {
26645
26648
  if (this.livs[i].context == '*ALLUSERS') {
@@ -26718,8 +26721,8 @@ class dati_aggiuntivi_v2 {
26718
26721
  for (let i = 0; i < this.livs.length; i++)
26719
26722
  if (this.livs[i].step == min_liv &&
26720
26723
  this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() ==
26721
- this.livs[i].username.toUpperCase()) {
26722
- console.log(' this.livs[i].step ', this.livs[i].step, this.livs[i].username.toUpperCase(), this.livs[i].context);
26724
+ (this.livs[i].username || 'ND').toUpperCase()) {
26725
+ console.log(' this.livs[i].step ', this.livs[i].step, (this.livs[i].username || 'ND').toUpperCase(), this.livs[i].context);
26723
26726
  let b_found = false;
26724
26727
  for (let y = 0; y < sv.length; y++)
26725
26728
  if (sv[y] == this.livs[i].context) {
@@ -27069,7 +27072,7 @@ class dati_aggiuntivi_v2 {
27069
27072
  //console.log('this.livs[i].username.toUpperCase() ',this.livs[i].username.toUpperCase() );
27070
27073
  if (this.livs[i].username == null)
27071
27074
  this.livs[i].username = 'ZZZ';
27072
- if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase() ||
27075
+ if (this.user_idp.toUpperCase() == (this.livs[i].username || 'ND').toUpperCase() ||
27073
27076
  this.livs[i].context == '*ALLUSERS') {
27074
27077
  // if (this.livs[i].abilita_indietro == 1) this.respingi_enabled = true;
27075
27078
  // else this.respingi_enabled = false;
@@ -27282,7 +27285,7 @@ class dati_aggiuntivi_v2 {
27282
27285
  var a = s.split(',');
27283
27286
  for (var y = 0; y < a.length; y++)
27284
27287
  for (var i = 0; i < this.livs.length; i++) {
27285
- if (a[y].toUpperCase() == this.livs[i].username.toUpperCase()) {
27288
+ if (a[y].toUpperCase() == (this.livs[i].username || 'ND').toUpperCase()) {
27286
27289
  if (rt != '')
27287
27290
  rt = rt + ',';
27288
27291
  rt = rt + this.livs[i].nc;