From c6620e2115169637bf33ade2ce05f9403a562e37 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 28 Jul 2015 14:34:33 +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 f099fd2c25..ca3c4b395a 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';