Prevent column selection preference from being reset, fixes forced columns don't stay forced.

This commit is contained in:
Nathan Gray 2015-07-27 15:24:27 +00:00
parent ce9c1187bf
commit ea0663d531

View File

@ -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';