summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-07 09:29:31 +0000
committeralecpl <alec@alec.pl>2011-09-07 09:29:31 +0000
commitb104e39f3425faf77cae67101c734fcfc3b0c1e9 (patch)
tree86a9dca8d4414b6ca6c0ae796ddfdf276dace682
parentf5c1085fbdb8b1555391d959f3de07412644577f (diff)
- Clear contactlist page conter after saved-search delete
-rw-r--r--program/steps/addressbook/search.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc
index ad1df9792..ea9824727 100644
--- a/program/steps/addressbook/search.inc
+++ b/program/steps/addressbook/search.inc
@@ -67,6 +67,9 @@ if ($RCMAIL->action == 'search-delete') {
if ($result) {
$OUTPUT->show_message('savedsearchdeleted', 'confirmation');
$OUTPUT->command('remove_search_item', Q($id));
+ // contact list will be cleared, clear also page counter
+ $OUTPUT->command('set_rowcount', rcube_label('nocontactsfound'));
+ $OUTPUT->set_env('pagecount', 0);
}
else
$OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'savedsearchdeleteerror', 'error');