@@ -, +, @@ happened $ kshell k$ prove t/db_dependent/Illrequests.t --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2169,7 +2169,7 @@ sub AddReturn { # Check if this item belongs to a biblio record that is attached to an # ILL request, if it is we need to update the ILL request's status - if (C4::Context->preference('CirculateILL')) { + if ( $doreturn and C4::Context->preference('CirculateILL')) { my $request = Koha::Illrequests->find( { biblio_id => $item->biblio->biblionumber } ); --