summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');