From 44ae13a32e926b711da43e1742478bd4dd1b7198 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 24 Sep 2014 08:26:42 +0000 Subject: [PATCH] changing default columns for new installs to a postiv list of "type, name/organisation, bussiness address, phone and email", so adding further columns dont make them automatic enabled --- addressbook/inc/class.addressbook_ui.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index effbd955f2..625c2802ba 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -224,7 +224,11 @@ class addressbook_ui extends addressbook_bo 'filter2_no_lang'=> True, // I set no_lang for filter2 (=dont translate the options) 'lettersearch' => true, 'do_email' => $do_email ? 1 : 0, - 'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner,room', + // using a positiv list now, as we constantly adding new columns in addressbook, but not removing them from default + 'default_cols' => 'type,n_fileas_n_given_n_family_n_family_n_given_org_name_n_family_n_given_n_fileas,'. + 'business_adr_one_countrycode_adr_one_postalcode,tel_work_tel_cell_tel_home,url_email_email_home', + /* old negative list + 'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner,room',*/ 'filter2_onchange' => "app.addressbook.filter2_onchange();", 'manual' => $do_email ? ' ' : false, // space for the manual icon //'actions' => $this->get_actions(), // set on each request, as it depends on some filters