From 51951d55d52d1aa71e77d6a34920107e10f5d949 Mon Sep 17 00:00:00 2001 From: Nathan Gray <nathangray.bsc@gmail.com> Date: Mon, 21 Mar 2016 21:02:09 +0000 Subject: [PATCH] Fix details / no details toggling of columns --- infolog/inc/class.infolog_ui.inc.php | 5 ----- infolog/js/app.js | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index e560563903..e90094d5a8 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -534,11 +534,6 @@ class infolog_ui $GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'none' && !isset($GLOBALS['egw_info']['user']['apps']['admin']) ); - if($rows['no_info_owner_info_responsible']) - { - // dont show owner, responsible in the columnselection - $query['options-selectcols']['info_owner'] = $query['options-selectcols']['info_responsible'] = false; - } // if filtered by type, show only the stati of the filtered type $rows['sel_options']['info_status'] = $this->bo->get_status($query['col_filter']['info_type']); diff --git a/infolog/js/app.js b/infolog/js/app.js index 310b5b61bd..51c1efbd9d 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -256,7 +256,7 @@ app.classes.infolog = AppJS.extend( // Load new preferences var colData = nm.columns.slice(); - for(var i = 0; i < nm.columns.length; i++) colData[i].disabled=false; + for(var i = 0; i < nm.columns.length; i++) colData[i].visible=false; nm.set_columns(egw.preference(nm.options.settings.columnselection_pref,'infolog').split(',')); nm._applyUserPreferences(nm.columns, colData); @@ -265,7 +265,7 @@ app.classes.infolog = AppJS.extend( for(var i = 0; i < colData.length; i++) { nm.dataview.getColumnMgr().columns[i].set_width(colData[i].width); - nm.dataview.getColumnMgr().columns[i].set_visibility(!colData[i].disabled); + nm.dataview.getColumnMgr().columns[i].set_visibility(colData[i].visible); } nm.dataview.getColumnMgr().updated = true; // Update page