From ea0663d531f054186a82fb2dd58e1dcb8737c98d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 27 Jul 2015 15:24:27 +0000 Subject: [PATCH] Prevent column selection preference from being reset, fixes forced columns don't stay forced. --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index a05da14874..0a87034523 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -1049,7 +1049,7 @@ class etemplate_widget_nextmatch extends etemplate_widget // Save current column settings as default, clear, or force (admins only) - if($GLOBALS['egw_info']['user']['apps']['admin'] && $app) + if($GLOBALS['egw_info']['user']['apps']['admin'] && $app && $value['selectcols']) { $pref_name = 'nextmatch-' . (isset($content_value['columnselection_pref']) ? $content_value['columnselection_pref'] : $this->attrs['template']); $refresh_pref_name = $pref_name.'-autorefresh';