@fluxhub/fluxhub-lib 10.0.599 → 10.0.600

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.
@@ -5804,7 +5804,7 @@ class wkfapp {
5804
5804
  data.result_data[0].cognome +
5805
5805
  " " +
5806
5806
  data.result_data[0].nome;
5807
- localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(data.result_data[0]));
5807
+ localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
5808
5808
  this.get_grid().doFill("");
5809
5809
  }
5810
5810
  });
@@ -5816,7 +5816,9 @@ class wkfapp {
5816
5816
  ripristina_imp() {
5817
5817
  if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
5818
5818
  return;
5819
- let obj = this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
5819
+ let obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
5820
+ if (obj == null)
5821
+ return;
5820
5822
  this.app_s.user_name_ori = this.app_s.user_name;
5821
5823
  this.app_s.user_ori = this.app_s.user;
5822
5824
  this.app_s.user_surname_ori = this.app_s.user_surname;
@@ -16873,7 +16875,14 @@ class dati_aggiuntivi {
16873
16875
  this.user_email = this.app_s.user_email;
16874
16876
  return;
16875
16877
  }
16876
- let obj = this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
16878
+ let obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
16879
+ if (obj == null) {
16880
+ this.user_idp = this.app_s.user;
16881
+ this.user_nome = this.app_s.user_name;
16882
+ this.user_cognome = this.app_s.user_surname;
16883
+ this.user_email = this.app_s.user_email;
16884
+ return;
16885
+ }
16877
16886
  this.app_s.user_name_ori = this.app_s.user_name;
16878
16887
  this.app_s.user_ori = this.app_s.user;
16879
16888
  this.app_s.user_surname_ori = this.app_s.user_surname;
@@ -24000,7 +24009,14 @@ class dati_aggiuntivi_v2 {
24000
24009
  this.user_email = this.app_s.user_email;
24001
24010
  return;
24002
24011
  }
24003
- let obj = this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
24012
+ let obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
24013
+ if (obj == null) {
24014
+ this.user_idp = this.app_s.user;
24015
+ this.user_nome = this.app_s.user_name;
24016
+ this.user_cognome = this.app_s.user_surname;
24017
+ this.user_email = this.app_s.user_email;
24018
+ return;
24019
+ }
24004
24020
  this.app_s.user_name_ori = this.app_s.user_name;
24005
24021
  this.app_s.user_ori = this.app_s.user;
24006
24022
  this.app_s.user_surname_ori = this.app_s.user_surname;
@@ -28813,7 +28829,7 @@ class wkfapp_v2 {
28813
28829
  data.result_data[0].cognome +
28814
28830
  " " +
28815
28831
  data.result_data[0].nome;
28816
- localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(data.result_data[0]));
28832
+ localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
28817
28833
  this.get_grid().doFill("");
28818
28834
  }
28819
28835
  });
@@ -29040,7 +29056,9 @@ class wkfapp_v2 {
29040
29056
  ripristina_imp() {
29041
29057
  if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
29042
29058
  return;
29043
- let obj = this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
29059
+ let obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
29060
+ if (obj == null)
29061
+ return;
29044
29062
  this.app_s.user_name_ori = this.app_s.user_name;
29045
29063
  this.app_s.user_ori = this.app_s.user;
29046
29064
  this.app_s.user_surname_ori = this.app_s.user_surname;