Fix #904
This commit is contained in:
parent
a574112f4e
commit
606cd88857
|
@ -83,7 +83,7 @@ class Anagrafica extends Model
|
|||
|
||||
public static function fromTipo($type)
|
||||
{
|
||||
$tipologia = Tipo::where('descrizione', 'Tecnico')->first();
|
||||
$tipologia = Tipo::where('descrizione', $type)->first();
|
||||
|
||||
$anagrafiche = self::whereHas('tipi', function ($query) use ($tipologia) {
|
||||
$query->where('an_tipianagrafiche.idtipoanagrafica', '=', $tipologia->id);
|
||||
|
|
Loading…
Reference in New Issue