forked from extern/egroupware
Fix setting default/forced column preference when selected columns was changed at the same time.
This commit is contained in:
parent
c21dcc5e4a
commit
f33862b8b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user