From 5ead50aa6d0215a1fac7b9992ae2ec299d7a3233 Mon Sep 17 00:00:00 2001 From: valentina Date: Wed, 4 Jun 2025 14:46:43 +0200 Subject: [PATCH] fix: salvataggio partita iva, codice fiscale e note da plugin sedi aggiuntive --- plugins/sedi/actions.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/plugins/sedi/actions.php b/plugins/sedi/actions.php index 2e5e009a8..42b515db6 100755 --- a/plugins/sedi/actions.php +++ b/plugins/sedi/actions.php @@ -85,22 +85,25 @@ switch ($operazione) { $sede->citta = post('citta'); $sede->cap = post('cap'); $sede->provincia = strtoupper(post('provincia')); - $sede->km = post('km'); $sede->id_nazione = !empty(post('id_nazione')) ? post('id_nazione') : null; - $sede->idzona = !empty(post('idzona')) ? post('idzona') : 0; - $sede->cellulare = post('cellulare'); $sede->telefono = post('telefono'); + $sede->cellulare = post('cellulare'); $sede->email = post('email'); $sede->enable_newsletter = empty($opt_out_newsletter); $sede->codice_destinatario = post('codice_destinatario'); - $sede->is_automezzo = post('is_automezzo'); $sede->is_rappresentante_fiscale = post('is_rappresentante_fiscale'); - $sede->targa = post('targa'); - $sede->nome = post('nome'); - $sede->descrizione = post('descrizione'); + $sede->piva = post('piva'); + $sede->codice_fiscale = post('codice_fiscale'); + $sede->is_automezzo = post('is_automezzo'); + $sede->idzona = !empty(post('idzona')) ? post('idzona') : 0; + $sede->km = post('km'); + $sede->note = post('note'); $sede->gaddress = post('gaddress'); $sede->lat = post('lat'); $sede->lng = post('lng'); + $sede->targa = post('targa'); + $sede->nome = post('nome'); + $sede->descrizione = post('descrizione'); $sede->save(); $referenti = $dbo->fetchArray('SELECT id FROM an_referenti WHERE idsede = '.$id_record);