Bugzilla – Attachment 104253 Details for
Bug 23070
Use Koha::Hold in C4::Reserves::RevertWaitingStatus
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23070: Pass no_triggers => 1 to Koha::Objects->update
Bug-23070-Pass-notriggers--1-to-KohaObjects-update.patch (text/plain), 1.02 KB, created by
Jonathan Druart
on 2020-05-04 09:56:38 UTC
(
hide
)
Description:
Bug 23070: Pass no_triggers => 1 to Koha::Objects->update
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-04 09:56:38 UTC
Size:
1.02 KB
patch
obsolete
>From afa3e1d41b7a985651965f25d47c4439921a12fb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 29 Apr 2020 12:19:46 +0200 >Subject: [PATCH] Bug 23070: Pass no_triggers => 1 to Koha::Objects->update > >To make sure we will update all the objects in one go (and no trigger >the ->set->store from Koha::Object->update) >--- > C4/Reserves.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 358ba133c5..a2ac558711 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -1994,7 +1994,7 @@ sub RevertWaitingStatus { > ## Increment the priority of all other non-waiting > ## reserves for this bib record > my $holds = Koha::Holds->search({ biblionumber => $hold->biblionumber, priority => { '>' => 0 } }) >- ->update({ priority => \'priority + 1' }); >+ ->update({ priority => \'priority + 1' }, { no_triggers => 1 }); > > ## Fix up the currently waiting reserve > $hold->set( >-- >2.20.1
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 23070
:
90400
|
97976
|
97977
|
99168
|
99169
|
99170
|
103907
|
103908
|
103909
|
103910
|
104253
|
104261
|
104262
|
104263
|
104264
|
106556
|
106557
|
106558
|
106559