From bdfe2b64da22c0d9b34e8c79899c3429aac40e1e Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 19 Sep 2019 16:17:17 +0200 Subject: [PATCH] Bugfix --- assets/src/css/style.css | 4 ++++ modules/anagrafiche/src/Anagrafica.php | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/assets/src/css/style.css b/assets/src/css/style.css index 4f75bf290..24e74146d 100644 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -889,3 +889,7 @@ input.small-width { .has-feedback .form-control { padding-right: 6px; } + +.direct-chat-text img { + max-width: 100%; +} diff --git a/modules/anagrafiche/src/Anagrafica.php b/modules/anagrafiche/src/Anagrafica.php index 28b719a26..0ce72cfc8 100644 --- a/modules/anagrafiche/src/Anagrafica.php +++ b/modules/anagrafiche/src/Anagrafica.php @@ -198,6 +198,13 @@ class Anagrafica extends Model } } + public function save(array $options = []) + { + $this->fixRagioneSociale(); + + return parent::save($options); + } + // Attributi Eloquent /** @@ -223,15 +230,11 @@ class Anagrafica extends Model public function setNomeAttribute($value) { $this->attributes['nome'] = trim($value); - - $this->fixRagioneSociale(); } public function setCognomeAttribute($value) { $this->attributes['cognome'] = trim($value); - - $this->fixRagioneSociale(); } public function setCodiceFiscaleAttribute($value)