From 0946c41c135ca552c412ce507c5c8ff7b16934af Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Tue, 21 Sep 2021 17:12:39 +0200 Subject: [PATCH 1/3] Fix inclusione cartella temp in release --- gulpfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gulpfile.js b/gulpfile.js index e13758c78..57ea3f20c 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -399,6 +399,7 @@ function release(done) { '!include/custom/**', '!backup/**', '!files/**', + 'files/temp/.gitkeep', '!logs/**', '!config.inc.php', '!update/structure.php', From 4cf5fcddbe786da0229985e7f37fc5913db36390 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Tue, 21 Sep 2021 17:18:00 +0200 Subject: [PATCH 2/3] Fix impostazione sede legale --- src/API/App/v1/Interventi.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/API/App/v1/Interventi.php b/src/API/App/v1/Interventi.php index a6c6999ce..7204f5adb 100644 --- a/src/API/App/v1/Interventi.php +++ b/src/API/App/v1/Interventi.php @@ -216,6 +216,7 @@ class Interventi extends AppResource $record->richiesta = $data['richiesta']; $record->descrizione = $data['descrizione']; $record->informazioniaggiuntive = $data['informazioni_aggiuntive']; + $record->idsede_destinazione = $data['id_sede'] ?: 0; // Salvataggio firma eventuale if (empty($record->firma_nome) && !empty($data['firma_nome'])) { From 46cbd26a18e6ba8d831f600166a4409f597f38a1 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Wed, 22 Sep 2021 10:17:14 +0200 Subject: [PATCH 3/3] Correzione date Preventivi e Contratti --- modules/contratti/src/Contratto.php | 2 ++ modules/preventivi/src/Preventivo.php | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/modules/contratti/src/Contratto.php b/modules/contratti/src/Contratto.php index 30c3111e9..e61bce933 100755 --- a/modules/contratti/src/Contratto.php +++ b/modules/contratti/src/Contratto.php @@ -50,8 +50,10 @@ class Contratto extends Document * @var array */ protected $dates = [ + 'data_bozza', 'data_conclusione', 'data_accettazione', + 'data_rifiuto', ]; /** diff --git a/modules/preventivi/src/Preventivo.php b/modules/preventivi/src/Preventivo.php index 2976cf77e..12f9b9a57 100755 --- a/modules/preventivi/src/Preventivo.php +++ b/modules/preventivi/src/Preventivo.php @@ -43,6 +43,18 @@ class Preventivo extends Document protected $table = 'co_preventivi'; + /** + * The attributes that should be mutated to dates. + * + * @var array + */ + protected $dates = [ + 'data_bozza', + 'data_conclusione', + 'data_accettazione', + 'data_rifiuto', + ]; + /** * Crea un nuovo preventivo. *