Skip to content

Commit

Permalink
Fix so session's search scope is not used if search is not active (#8199
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alecpl committed Oct 19, 2021
1 parent 263003d commit a94c2a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- Password: Improve handling errors on executed commands (#8200)
- Fix locked SQLite database for the CLI tools (#8035)
- Fix importing contacts with no email address (#8227)
- Fix so session's search scope is not used if search is not active (#8199)

## Release 1.5.0

Expand Down
2 changes: 1 addition & 1 deletion program/actions/mail/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function run($args = [])
$rcmail->output->set_env('search_mods', self::search_mods());

$scope = rcube_utils::get_input_string('_scope', rcube_utils::INPUT_GET);
if (!$scope && isset($_SESSION['search_scope'])) {
if (!$scope && isset($_SESSION['search_scope']) && $rcmail->output->get_env('search_request')) {
$scope = $_SESSION['search_scope'];
}

Expand Down

0 comments on commit a94c2a3

Please sign in to comment.