Bugzilla – Attachment 123039 Details for
Bug 22690
Merging records with many items too slow (Elasticsearch)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22690: (QA follow-up) Clarify uses of DBIC
Bug-22690-QA-follow-up-Clarify-uses-of-DBIC.patch (text/plain), 1.63 KB, created by
Martin Renvoize (ashimema)
on 2021-07-22 09:27:16 UTC
(
hide
)
Description:
Bug 22690: (QA follow-up) Clarify uses of DBIC
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-07-22 09:27:16 UTC
Size:
1.63 KB
patch
obsolete
>From 0a041449dc0f84ebf013a555195850fd1b24315a Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 22 Jul 2021 10:25:28 +0100 >Subject: [PATCH] Bug 22690: (QA follow-up) Clarify uses of DBIC > >--- > Koha/Item.pm | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index 1732373680..3b3d9c9f35 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -1193,7 +1193,7 @@ sub orders { > > $item->move_to_biblio($to_biblio[, $params]); > >-Move the item to another biblio and update any references also in other tables. >+Move the item to another biblio and update any references in other tables. > > The final optional parameter, C<$params>, is expected to contain the > 'skip_record_index' key, which is relayed down to Koha::Item->store. >@@ -1238,7 +1238,7 @@ sub move_to_biblio { > # Holds > $self->holds->update({ biblionumber => $to_biblionumber }); > >- # hold_fill_target (there's no Koha object available) >+ # hold_fill_target (there's no Koha object available yet) > my $hold_fill_target = $self->_result->hold_fill_target; > if ($hold_fill_target) { > $hold_fill_target->update({ biblionumber => $to_biblionumber }); >@@ -1255,7 +1255,8 @@ sub move_to_biblio { > } > ); > >- # linktrackers >+ # linktrackers (there's no Koha object set available yet) >+ # direct lookup as there's no foreign key relationship yet > my $schema = Koha::Database->new()->schema(); > my $linktrackers = $schema->resultset('Linktracker')->search({ itemnumber => $self->itemnumber }); > $linktrackers->update_all({ biblionumber => $to_biblionumber }); >-- >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 22690
:
90061
|
90115
|
90116
|
92828
|
94505
|
97696
|
98143
|
98210
|
98211
|
99376
|
99379
|
100316
|
104796
|
104797
|
104871
|
105445
|
106144
|
108777
|
109694
|
110991
|
110994
|
111196
|
111207
|
111236
|
111237
|
112100
|
112184
|
112567
|
112569
|
112754
|
113308
|
113309
|
113941
|
113942
|
113967
|
113968
|
118226
|
118227
|
118229
|
118231
|
118391
|
119433
|
119434
|
120820
|
120821
|
120852
|
120853
|
121389
|
121392
|
121474
|
121516
|
121517
|
121518
|
121519
|
121520
|
122846
|
122847
|
122848
|
122849
|
122850
|
122886
|
122887
|
122888
|
122889
|
122890
|
122936
|
122938
|
122939
|
123029
|
123030
|
123031
|
123032
|
123033
|
123034
|
123035
|
123036
|
123037
|
123038
|
123039
|
123040
|
123041
|
123042
|
123044
|
123062
|
123481
|
123482
|
123483
|
123484
|
123485
|
123486
|
123487
|
123488
|
123489
|
123490
|
123491
|
123492
|
123493
|
123494
|
123495
|
123496
|
123497
|
124176
|
124188
|
124257