Bug 22690: (QA follow-up) Improve negation syntax
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 22 Jul 2021 09:01:32 +0000 (10:01 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Aug 2021 09:02:41 +0000 (11:02 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Item.pm

index c73a298..13bf032 100644 (file)
@@ -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;