Bugzilla – Attachment 104541 Details for
Bug 23185
Koha::Objects supports passing through 'update' which means we can side step 'set' + 'store'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23185: (follow-up) K:C:Register->make_default should use no_triggers
Bug-23185-follow-up-KCRegister-makedefault-should-.patch (text/plain), 943 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2020-05-08 00:01:20 UTC
(
hide
)
Description:
Bug 23185: (follow-up) K:C:Register->make_default should use no_triggers
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-05-08 00:01:20 UTC
Size:
943 bytes
patch
obsolete
>From f62dfc0f78e1b81c972f45489b3b3b858c354abf Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 7 May 2020 21:00:39 -0300 >Subject: [PATCH] Bug 23185: (follow-up) K:C:Register->make_default should use > no_triggers > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Cash/Register.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Cash/Register.pm b/Koha/Cash/Register.pm >index 9308f2ff59..e54ce5f228 100644 >--- a/Koha/Cash/Register.pm >+++ b/Koha/Cash/Register.pm >@@ -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; > } >-- >2.26.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23185
:
103867
|
103868
|
103946
|
103947
|
104087
|
104088
|
104089
|
104232
|
104233
|
104234
|
104271
|
104272
|
104273
|
104276
|
104537
|
104538
| 104541