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:
parent
74586912c0
commit
b5ff3696b5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue