From 82fef6bf66d2be6022fd288aa2e9651af7abccfc Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 31 Mar 2015 15:07:31 +0000 Subject: [PATCH] - Fix business address layout - Org view enable all columns by default --- addressbook/inc/class.addressbook_ui.inc.php | 6 +++++- addressbook/templates/default/index.org_rows.xet | 16 ++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 56be05c193..5feb286dfe 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -323,7 +323,11 @@ class addressbook_ui extends addressbook_bo } // get the availible org-views plus the label of the contacts view of one org $sel_options['org_view'] = $this->org_views; - if (isset($org_view)) $content['nm']['org_view'] = $org_view; + if (isset($org_view)) + { + $content['nm']['org_view'] = $org_view; + $content['nm']['default_cols'] = ''; + } $content['nm']['actions'] = $this->get_actions($content['nm']['col_filter']['tid'], $content['nm']['org_view']); diff --git a/addressbook/templates/default/index.org_rows.xet b/addressbook/templates/default/index.org_rows.xet index ff4fc5cf0e..1df0b29d7d 100644 --- a/addressbook/templates/default/index.org_rows.xet +++ b/addressbook/templates/default/index.org_rows.xet @@ -25,13 +25,17 @@ - - - - - - + + + + + + + + + +