mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
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
|
// Set columns + refresh as default for all users
|
||||||
|
// Columns included in submit, preference might not be updated yet
|
||||||
// Columns already saved to current user's preferences, use from there
|
$cols = $value['selectcols'];
|
||||||
$prefs = $GLOBALS['egw']->preferences->read();
|
$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);
|
$GLOBALS['egw']->preferences->add($app,$pref_name,is_array($cols) ? implode(',',$cols) : $cols, $pref_level);
|
||||||
|
|
||||||
// Autorefresh
|
// Autorefresh
|
||||||
|
Loading…
Reference in New Issue
Block a user