Skip to content

Commit ba7b12b

Browse files
Fix: controllo tipologia anagrafica
1 parent 1061f32 commit ba7b12b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/anagrafiche/src/Anagrafica.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function isAzienda()
209209
*/
210210
public function isTipo($type)
211211
{
212-
return $this->tipi()->get()->search(fn ($item, $key) => TipoAnagrafica::find($item->id)->getTranslation('title', \Models\Locale::getPredefined()->id) == $type) !== false;
212+
return $this->tipi()->get()->search(fn ($item, $key) => TipoAnagrafica::find($item->id)->name == $type) !== false;
213213
}
214214

215215
public function delete()

0 commit comments

Comments
 (0)