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

--- Comment #15 from Kyle M Hall <[email protected]> ---
Comment on attachment 63654
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63654
Bug 18651: Copy the row before modify the id

Review of attachment 63654:
 --> 
(https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=18651&attachment=63654)
-----------------------------------------------------------------

::: C4/Circulation.pm
@@ +2180,4 @@
>  
> +        # Create the old_issues entry
> +        my $old_checkout_data = $issue->unblessed;
> +

Start the loop here

@@ +2193,3 @@
>  
> +        # Update the fines
> +        $dbh->do(q|UPDATE accountlines SET issue_id = ? WHERE issue_id = ?|, 
> undef, $old_checkout->issue_id, $issue->issue_id);

If the dbh update files, go back to "Start the loop here", otherwise continue.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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