From f30ce4fdf2ac950ffc78dfec1cb36e173a087cc0 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 7 Sep 2011 09:29:31 +0000 Subject: - Clear contactlist page conter after saved-search delete git-svn-id: https://svn.roundcube.net/trunk@5189 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/addressbook/search.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roundcubemail/program/steps') 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'); -- cgit v1.2.3