Fix setting default/forced column preference when selected columns was changed at the same time.

This commit is contained in:
Nathan Gray 2013-11-06 22:51:57 +00:00
parent c21dcc5e4a
commit f33862b8b6

View File

@ -859,10 +859,9 @@ class etemplate_widget_nextmatch extends etemplate_widget
}
// Set columns + refresh as default for all users
// Columns already saved to current user's preferences, use from there
// Columns included in submit, preference might not be updated yet
$cols = $value['selectcols'];
$prefs = $GLOBALS['egw']->preferences->read();
$cols = $prefs[$app][$pref_name];
$GLOBALS['egw']->preferences->add($app,$pref_name,is_array($cols) ? implode(',',$cols) : $cols, $pref_level);
// Autorefresh