1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 15:22:24 +01:00
This commit is contained in:
Thomas Zilio 2019-09-19 16:17:17 +02:00
parent 8d1f01e146
commit bdfe2b64da
2 changed files with 11 additions and 4 deletions

View File

@ -889,3 +889,7 @@ input.small-width {
.has-feedback .form-control {
padding-right: 6px;
}
.direct-chat-text img {
max-width: 100%;
}

View File

@ -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)