Bug 21011: (follow-up) Fix pod, fix missing homebranch condition, change mode to...
authorJosef Moravec <josef.moravec@gmail.com>
Wed, 27 Jun 2018 20:27:09 +0000 (20:27 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 22 Aug 2018 12:41:51 +0000 (12:41 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/maintenance/search_for_data_inconsistencies.pl [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5105f6c..2c8861e
@@ -25,7 +25,7 @@ use Koha::Items;
     while ( my $item = $items->next ) {
         if ( not $item->homebranch and not $item->holdingbranch ) {
             new_item(sprintf "Item with itemnumber=%s does not have homebranch and holdingbranch defined", $item->itemnumber);
-        } elsif ( $item->homebranch ) {
+        } elsif ( not $item->homebranch ) {
             new_item(sprintf "Item with itemnumber=%s does not have homebranch defined", $item->itemnumber);
         } else {
             new_item(sprintf "Item with itemnumber=%s does not have holdingbranch defined", $item->itemnumber);
@@ -62,6 +62,4 @@ Catch data inconsistencies in Koha database
 
 * Items with not defined homebranch and/or holdingbranch
 
-=back
-
 =cut