From 5ec194dfa9a1198bf5578bd3c7fac613da529f3c Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 27 Jun 2018 20:27:09 +0000 Subject: [PATCH] Bug 21011: (follow-up) Fix pod, fix missing homebranch condition, change mode to executable Signed-off-by: Josef Moravec Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 5892ab07118b04a8071b49c40b441df326e15f07) Signed-off-by: Martin Renvoize --- misc/maintenance/search_for_data_inconsistencies.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) mode change 100644 => 100755 misc/maintenance/search_for_data_inconsistencies.pl diff --git a/misc/maintenance/search_for_data_inconsistencies.pl b/misc/maintenance/search_for_data_inconsistencies.pl old mode 100644 new mode 100755 index 5105f6cfc0..2c8861e1a8 --- a/misc/maintenance/search_for_data_inconsistencies.pl +++ b/misc/maintenance/search_for_data_inconsistencies.pl @@ -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 -- 2.39.5