mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix admin changing their columns set the default for all users
This commit is contained in:
parent
999b9f8724
commit
e791caf622
@ -1043,7 +1043,17 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
||||
{
|
||||
$pref_name = 'nextmatch-' . (isset($content_value['columnselection_pref']) ? $content_value['columnselection_pref'] : $this->attrs['template']);
|
||||
$refresh_pref_name = $pref_name.'-autorefresh';
|
||||
$pref_level = $value['nm_col_preference'] == 'force' ? 'forced' : 'default';
|
||||
switch($value['nm_col_preference']) {
|
||||
case 'force':
|
||||
$pref_level = 'forced';
|
||||
break;
|
||||
case 'reset':
|
||||
case 'default':
|
||||
$pref_level = 'default';
|
||||
break;
|
||||
default:
|
||||
$pref_level = 'user';
|
||||
}
|
||||
|
||||
// Clear forced pref before setting default
|
||||
if($pref_level != 'forced')
|
||||
|
@ -1421,15 +1421,13 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput, et2_IPrin
|
||||
// Auto refresh
|
||||
self._set_autorefresh(autoRefresh.get_value());
|
||||
|
||||
// Set default or clear forced?
|
||||
if(defaultCheck.get_value())
|
||||
// Set default or clear forced
|
||||
if(show_letters)
|
||||
{
|
||||
if(show_letters)
|
||||
{
|
||||
self.activeFilters.selectcols.push('lettersearch');
|
||||
}
|
||||
self.getInstanceManager().submit();
|
||||
self.activeFilters.selectcols.push('lettersearch');
|
||||
}
|
||||
self.getInstanceManager().submit();
|
||||
|
||||
self.selectPopup = null;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user