Bug 24051

Summary: batchMod.pl: DBIx::Class::ResultSet::search_rs(): search( %condition ) is deprecated
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: 1joynelson, lucas, martin.renvoize
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.05.00, 19.11.04, 19.05.09
Bug Depends on: 19490    
Bug Blocks:    
Attachments: Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl
Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl
Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl

Description Jonathan Druart 2019-11-18 10:20:10 UTC
batchMod.pl: DBIx::Class::ResultSet::search_rs(): search( %condition ) is deprecated, use search( \\%condition ) instead at /kohadevbox/koha/Koha/Objects.pm line 136: /kohadevbox/koha/tools/batchMod.pl, referer: http://localhost:8081/cgi-bin/koha/reports/guided_reports.pl?reports=1&phase=Run%20this%20report
Comment 1 Jonathan Druart 2019-11-18 10:32:14 UTC
Created attachment 95486 [details] [review]
Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl

Test plan:
Go to Home › Tools › Batch item modification
Insert barcodes and continue
=> Without this patch you will get warning in the log
=> With this patch applied you warning does no longer appear
Confirm that the number of holds is correct
Comment 2 Owen Leonard 2020-02-14 17:59:21 UTC
Created attachment 98999 [details] [review]
Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl

Test plan:
Go to Home › Tools › Batch item modification
Insert barcodes and continue
=> Without this patch you will get warning in the log
=> With this patch applied you warning does no longer appear
Confirm that the number of holds is correct

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Martin Renvoize 2020-02-18 19:18:35 UTC
Created attachment 99219 [details] [review]
Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl

Test plan:
Go to Home › Tools › Batch item modification
Insert barcodes and continue
=> Without this patch you will get warning in the log
=> With this patch applied you warning does no longer appear
Confirm that the number of holds is correct

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 4 Martin Renvoize 2020-02-18 19:18:58 UTC
Trivial and obvious fix. Passing QA
Comment 5 Martin Renvoize 2020-02-19 11:34:27 UTC
Nice work everyone!

Pushed to master for 20.05
Comment 6 Joy Nelson 2020-03-13 00:36:10 UTC
Pushed to 19.11.x branch for 19.11.04
Comment 7 Lucas Gass 2020-03-18 21:39:22 UTC
backported to 19.05.x. for 19.05.09