Skip to content

Commit f040526

Browse files
committed
fix: correzione creazione token otp
1 parent 2855ea8 commit f040526

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

modules/otp_tokens/actions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
switch (post('op')) {
2424
case 'update':
25-
$id_utente = post('id_utente');
25+
$id_utente = post('id_utente') ?: null;
2626
$descrizione = post('descrizione');
2727
$tipo_accesso = post('tipo_accesso');
2828
$valido_dal = post('valido_dal') ?: null;
2929
$valido_al = post('valido_al') ?: null;
30-
$id_module_target = post('id_module_target') ?: 0;
31-
$id_record_target = post('id_record_target') ?: 0;
30+
$id_module_target = post('id_module_target') ?: null;
31+
$id_record_target = post('id_record_target') ?: null;
3232
$permessi = post('permessi') ?: null;
3333
$email = post('email');
3434

update/2_9_3.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,7 @@ ALTER TABLE `mg_articoli` ADD INDEX(`idiva_vendita`);
234234

235235
-- Rimozione indice doppio
236236
ALTER TABLE `mg_articoli` DROP INDEX `id_combinazione`;
237+
238+
-- Correzione in fase di creazione nuovo token
239+
ALTER TABLE `zz_otp_tokens` CHANGE `id_module_target` `id_module_target` INT(11) NULL;
240+
ALTER TABLE `zz_otp_tokens` CHANGE `id_record_target` `id_record_target` INT(11) NULL;

0 commit comments

Comments
 (0)