mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 12:30:35 +01:00
Fix import anagrafiche
This commit is contained in:
parent
ea8b6fd2b2
commit
1f6693f2d4
@ -63,7 +63,7 @@ switch (post('op')) {
|
|||||||
|
|
||||||
// Ricerca di eventuale anagrafica corrispondente
|
// Ricerca di eventuale anagrafica corrispondente
|
||||||
if (!empty($primary_key)) {
|
if (!empty($primary_key)) {
|
||||||
$anagrafica = Anagrafica::find($dati_anagrafica[$primary_key]);
|
$anagrafica = Anagrafica::where($primary_key, '=', $dati_anagrafica[$primary_key])->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($anagrafica)) {
|
if (empty($anagrafica)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user