@@ -, +, @@ search_for_data_inconsistencies.pl update items set itemlost = 9 where itemnumber=900; update items set notforloan = 8 where itemnumber=900; {900 => 8} {900 => 8} {900 => 9} {900 => 9} {900 => 8} --- misc/maintenance/search_for_data_inconsistencies.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/misc/maintenance/search_for_data_inconsistencies.pl +++ a/misc/maintenance/search_for_data_inconsistencies.pl @@ -237,11 +237,11 @@ use C4::Biblio qw( GetMarcFromKohaField ); if (%$invalid_av_per_framework) { new_section('Wrong values linked to authorised values'); for my $frameworkcode ( keys %$invalid_av_per_framework ) { - my $output; while ( my ( $av_category, $v ) = each %{$invalid_av_per_framework->{$frameworkcode}} ) { my $items = $v->{items}; my $kohafield = $v->{kohafield}; my ( $table, $column ) = split '\.', $kohafield; + my $output; while ( my $i = $items->next ) { my $value = $table eq 'items' ? $i->$column : $i->biblioitem->$column; $output .= " {" . $i->itemnumber . " => " . $value . "}"; --