From 33dc5da1559d028a2929c9393306cc188f7db5f6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 22 Jul 2021 10:01:32 +0100 Subject: [PATCH] Bug 22690: (QA follow-up) Improve negation syntax Signed-off-by: Jonathan Druart --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index c73a298f54..13bf032b4b 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -1212,7 +1212,7 @@ sub move_to_biblio { $params //= {}; - return unless $self->biblionumber != $to_biblio->biblionumber; + return if $self->biblionumber == $to_biblio->biblionumber; my $from_biblionumber = $self->biblionumber; my $to_biblionumber = $to_biblio->biblionumber; -- 2.39.5