Bug 21011: (follow-up) Fix pod, fix missing homebranch condition, change mode to executable

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>
This commit is contained in:
Josef Moravec 2018-06-27 20:27:09 +00:00 committed by Nick Clemens
parent 7d47bb3118
commit 5892ab0711

4
misc/maintenance/search_for_data_inconsistencies.pl Normal file → Executable file
View file

@ -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