From c47111785c11b82d39de9e6bc9c2c24bbd5e5528 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 31 Aug 2020 15:25:05 +0200 Subject: [PATCH] Bug 17661: Trivial simplification using += operator Signed-off-by: Jonathan Druart (cherry picked from commit c96fabb8c47320dba55372e4b955fb171310adec) Signed-off-by: Lucas Gass (cherry picked from commit 81865f77777273d96169bfe6afa760e11be0c7da) Signed-off-by: Aleisha Amohia --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 8f2681a5e7..11b755e364 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -812,7 +812,7 @@ sub _get_facet_from_result_set { my $facet_value = $term->textContent; $facet_value =~ s/\s*(?{ $facet_value } = ( defined $facets->{$facet_value} ) ? $facets->{ $facet_value } + $term->getAttribute( 'occur' ) : $term->getAttribute( 'occur' ); + $facets->{ $facet_value } += $term->getAttribute( 'occur' ); } return $facets; -- 2.39.5