summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-07 09:29:31 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-07 09:29:31 +0000
commitf30ce4fdf2ac950ffc78dfec1cb36e173a087cc0 (patch)
tree62ef1de3355fc821183046c32b6192d0581d670a /roundcubemail
parent4542996fef23e9e1d8758b4771d284f5d596ac6b (diff)
- Clear contactlist page conter after saved-search delete
git-svn-id: https://svn.roundcube.net/trunk@5189 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/program/steps/addressbook/search.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/addressbook/search.inc b/roundcubemail/program/steps/addressbook/search.inc
index ad1df9792..ea9824727 100644
--- a/roundcubemail/program/steps/addressbook/search.inc
+++ b/roundcubemail/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');