@@ -, +, @@ --- Koha/Schema/Result/CheckoutRenewal.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Schema/Result/CheckoutRenewal.pm +++ a/Koha/Schema/Result/CheckoutRenewal.pm @@ -140,7 +140,7 @@ Related object: L __PACKAGE__->belongs_to( "checkout", "Koha::Schema::Result::Issue", - { issue_id => "checkout_id" }, + { "foreign.issue_id" => "self.checkout_id" }, { is_deferrable => 1, join_type => "LEFT", @@ -158,7 +158,7 @@ Related object: L __PACKAGE__->belongs_to( "old_checkout", "Koha::Schema::Result::OldIssue", - { issue_id => "checkout_id" }, + { "foreign.issue_id" => "self.checkout_id" }, { is_deferrable => 1, join_type => "LEFT", --