Bug 23185: (follow-up) K:C:Register->make_default should use no_triggers

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomas Cohen Arazi 2020-05-07 21:00:39 -03:00 committed by Jonathan Druart
parent 74586912c0
commit b5ff3696b5
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ sub make_default {
sub {
my $registers =
Koha::Cash::Registers->search( { branch => $self->branch } );
$registers->update( { branch_default => 0 } );
$registers->update( { branch_default => 0 }, { no_triggers => 1 } );
$self->set( { branch_default => 1 } );
$self->SUPER::store;
}