From 81865f77777273d96169bfe6afa760e11be0c7da 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 --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index d39bbe350f..f641596d7e 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -781,7 +781,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