Bug 23185: (follow-up) K:C:Register->make_default should use no_triggers
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 May 2020 00:00:39 +0000 (21:00 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 8 May 2020 11:14:59 +0000 (13:14 +0200)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Cash/Register.pm

index 9308f2f..e54ce5f 100644 (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;
         }