Fix remember subsearch when use setttings form, a=chris
Fix remember subsearch when use setttings form, a=chris
diff --git a/src/views/elements/SearchoptionsElement.php b/src/views/elements/SearchoptionsElement.php
index d0949277f..4492e5561 100644
--- a/src/views/elements/SearchoptionsElement.php
+++ b/src/views/elements/SearchoptionsElement.php
@@ -139,12 +139,16 @@ class SearchoptionsElement extends Element
}?>
<h2 class="option-heading" ><?=
tl('searchoptions_element_searchsettings')?></h2>
- <form id='settings-form' method="post">
- <?php
- if (!empty($data['QUERY'])) { ?>
+ <form id='settings-form' method="post"><?php
+ if (!empty($data['QUERY'])) { ?>
<input type="hidden" name='q' value="<?=$data['QUERY'] ?>"/>
<?php
- } ?>
+ }
+ if (!empty($data['SUBSEARCH'])) { ?>
+ <input type="hidden" name='s' value="<?=$data['SUBSEARCH'] ?>"/>
+ <?php
+ }
+ ?>
<ul class='square-list'>
<li><label for="time-period"><b><?=
tl('searchoptions_element_time_label') ?></b></label> <?php