Skip to content

Commit 79e4028

Browse files
committed
bugfix: q_advanced and custom title availability on client
1 parent 7f61ec0 commit 79e4028

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

server/services/searchAQUANAVI.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
// And some others...
2525
$params_array = ["from", "to", "document_types", "sorting", "min_descsize", "lang_id", "vis_type"];
2626

27-
$is_custom_array_set = isset($post_params["custom_title"]);
28-
if ($is_custom_array_set) {
29-
$params_array[] = "custom_title";
27+
// Optional keys must be listed here so packParamsJSON() includes them in vis_params (see searchBASE.php).
28+
$optional_params = ["custom_title", "q_advanced"];
29+
foreach ($optional_params as $param) {
30+
if (isset($post_params[$param])) {
31+
$params_array[] = $param;
32+
}
3033
}
3134

3235
$result = search("aquanavi", $query, $post_params, $params_array, true, true, null, $precomputed_id, false);

0 commit comments

Comments
 (0)