mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-11 09:00:42 +01:00
Fix malfunzionamento righe
This commit is contained in:
parent
224a4e9561
commit
70835d92ad
@ -14,6 +14,10 @@ abstract class Description extends Model
|
||||
static::addGlobalScope('descriptions', function (Builder $builder) {
|
||||
$builder->where('is_descrizione', '=', 1);
|
||||
});
|
||||
} else {
|
||||
static::addGlobalScope('not_descriptions', function (Builder $builder) {
|
||||
$builder->where('is_descrizione', '=', 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ abstract class Row extends Description
|
||||
|
||||
protected static function boot($bypass = false)
|
||||
{
|
||||
parent::boot($bypass);
|
||||
parent::boot(true);
|
||||
|
||||
if (!$bypass) {
|
||||
static::addGlobalScope('rows', function (Builder $builder) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user