mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix #651
This commit is contained in:
parent
1ad4e04e59
commit
272054090e
@ -137,6 +137,8 @@ switch (post('op')) {
|
||||
$new->qta = 0;
|
||||
$new->save();
|
||||
|
||||
$id_record = $new->id;
|
||||
|
||||
flash()->info(tr('Articolo duplicato correttamente!'));
|
||||
|
||||
break;
|
||||
|
@ -70,10 +70,7 @@ class Articolo extends Model
|
||||
return true;
|
||||
}
|
||||
|
||||
public function articoli()
|
||||
{
|
||||
return $this->hasMany(ArticoloIntervento::class, 'idarticolo');
|
||||
}
|
||||
// Attributi Eloquent
|
||||
|
||||
public function getImageAttribute()
|
||||
{
|
||||
@ -102,4 +99,12 @@ class Articolo extends Model
|
||||
{
|
||||
return 'Articoli';
|
||||
}
|
||||
|
||||
// Relazioni Eloquent
|
||||
|
||||
public function articoli()
|
||||
{
|
||||
return $this->hasMany(ArticoloIntervento::class, 'idarticolo');
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user