From f4e145bf01c98569aee5c925f245de9622fbe646 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 16 Sep 2022 09:41:59 +0000 Subject: [PATCH] Bug 31239: (QA follow-up) Fixing ternary formatting Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 4481817701f0789f407f8bdfdcaeeb49c5239e5e) Signed-off-by: Lucas Gass (cherry picked from commit fd2bc6b8978a4b35749cd7ef20d033acc4412b73) Signed-off-by: Arthur Suzuki --- misc/maintenance/search_for_data_inconsistencies.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/misc/maintenance/search_for_data_inconsistencies.pl b/misc/maintenance/search_for_data_inconsistencies.pl index d2c32784d5..2249182621 100755 --- a/misc/maintenance/search_for_data_inconsistencies.pl +++ b/misc/maintenance/search_for_data_inconsistencies.pl @@ -193,10 +193,11 @@ use C4::Biblio qw( GetMarcFromKohaField ); my $kohafield = $v->{kohafield}; my ( $table, $column ) = split '\.', $kohafield; while ( my $i = $items->next ) { - my $value = - $table eq 'items' ? $i->$column - : $table eq 'biblio' ? $i->biblio->$column - : $i->biblioitem->$column; + my $value = $table eq 'items' + ? $i->$column + : $table eq 'biblio' + ? $i->biblio->$column + : $i->biblioitem->$column; $output .= " {" . $i->itemnumber . " => " . $value . "}"; } new_item( -- 2.39.5