summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/show.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-10 10:39:25 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-10 10:39:56 +0200
commitdddb9dee612e56298869422700aff0fba187a842 (patch)
tree4390219eb1cb0eba480ce2c4942972d9516ac169 /program/steps/addressbook/show.inc
parentf5f056e7f213666d9e9556092795b07df8e8354d (diff)
Fix errors when adding/updating contacts in active search (#1490015)
Diffstat (limited to 'program/steps/addressbook/show.inc')
-rw-r--r--program/steps/addressbook/show.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/addressbook/show.inc b/program/steps/addressbook/show.inc
index d4bf2a4cc..2085c38cc 100644
--- a/program/steps/addressbook/show.inc
+++ b/program/steps/addressbook/show.inc
@@ -32,6 +32,11 @@ $SOURCE_ID = $source;
if ($cid && ($record = $CONTACTS->get_record($cid, true))) {
$OUTPUT->set_env('readonly', $CONTACTS->readonly || $record['readonly']);
$OUTPUT->set_env('cid', $record['ID']);
+
+ // remember current search request ID (if in search mode)
+ if ($search = rcube_utils::get_input_value('_search', rcube_utils::INPUT_GET)) {
+ $OUTPUT->set_env('search_request', $search);
+ }
}
// get address book name (for display)