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:
parent
7d47bb3118
commit
5892ab0711
1 changed files with 1 additions and 3 deletions
4
misc/maintenance/search_for_data_inconsistencies.pl
Normal file → Executable file
4
misc/maintenance/search_for_data_inconsistencies.pl
Normal file → Executable 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
|
||||
|
|
Loading…
Reference in a new issue