Remove corpusQuery from statistics
Change-Id: Ie906261304329fea455f941fd9baee5a026f7889
diff --git a/Changes b/Changes
index 2b74f5b..3c5c741 100644
--- a/Changes
+++ b/Changes
@@ -5,6 +5,8 @@
- Removed deprecated doc_navi helper. (diewald)
- Removed deprecated doc->url helper. (diewald)
- Correctly propagate warnings in frontend calls. (diewald)
+ - Remove corpusQuery from statistics
+ (as per Kudstvakt #758). (diewald)
0.54 2024-06-10
- Remove deprecated 'matchInfo' API path. (diewald, margaretha)
diff --git a/lib/Kalamar/Controller/Search.pm b/lib/Kalamar/Controller/Search.pm
index 2876c50..dcb13e8 100644
--- a/lib/Kalamar/Controller/Search.pm
+++ b/lib/Kalamar/Controller/Search.pm
@@ -307,13 +307,7 @@
# Add query
my $cq = $v->param('cq');
- if ($cq) {
- $url->query({cq => $cq});
-
- # Temporary for backwards compatibility
- # with Kustvakt < 0.62.1
- $url->query({corpusQuery => $cq});
- };
+ $url->query({cq => $cq}) if $cq;
$c->app->log->debug("Statistics info: $url");