From e5f1bc9a247a28ce891c52cb4d81a238e7bce35d Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 26 Aug 2008 10:40:20 +0000 Subject: [PATCH] bugfix for missing search/cancel buttons in advanced search dialog --- addressbook/inc/class.addressbook_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index e2d52ac0ca..00e28ddaa2 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1804,13 +1804,15 @@ $readonlys['button[vcard]'] = true; $readonlys['change_photo'] = true; $readonlys['fileas_type'] = true; $readonlys['creator'] = true; - $readonlys['button'] = true; + // this setting will enable (and show) the search and cancel buttons, setting this to true will hide the before mentioned buttons completely + $readonlys['button'] = false; // disable not needed tabs $readonlys[$this->tabs]['cats'] = !($content['cat_tab'] = $this->config['cat_tab']); $readonlys[$this->tabs]['custom'] = !$this->customfields; $readonlys[$this->tabs]['custom_private'] = !$this->customfields || !$this->config['private_cf_tab']; $readonlys[$this->tabs]['links'] = true; $readonlys[$this->tabs]['distribution_list'] = true; + // setting hidebuttons for content will hide the 'normal' addressbook edit dialog buttons $content['hidebuttons'] = true; $content['no_tid'] = true; $content['disable_change_org'] = true;