https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27012

--- Comment #1 from Joonas Kylmälä <[email protected]> ---
Created attachment 113592
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113592&action=edit
Bug 27012: Fix incorrect SQL syntax in hold merging

If you merge two records with holds in them following error happens
without this patch:

[WARN] DBD::mysql::st execute failed: called with 4 bind variables when 3 are
needed [for Statement "SELECT * FROM reserves WHERE biblionumber = ? AND (found
<> ? AND found <> ? OR found is NULL) ORDER BY reservedate ASC" with
ParamValues: 0=Null!, 1=Null!, 2=Null!] at /kohadevbox/koha/C4/Reserves.pm line
2002.

To test:
 1) Create a hold in record A
 2) Use cataloging search to search for something that brings up
    record A and another record B.
 3) Select A and B records in the search results and click Edit ->
    Merge records
 4) Merge the records and notice that the above error is printed to
    plack-intranet-error.log
 5) Apply patch and repeat steps 1-4 but notice the error is gone

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to