mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 21:49:28 +01:00
fixed sometimes wrong prefs for to notified user were used (because more then one user got notified)
This commit is contained in:
parent
a276e48d48
commit
a8f61e517d
@ -331,11 +331,9 @@ abstract class bo_tracking
|
||||
|
||||
if (is_numeric($user_or_lang)) // user --> read everything from his prefs
|
||||
{
|
||||
if ($user_or_lang != $this->user)
|
||||
{
|
||||
$GLOBALS['egw']->preferences->preferences($user_or_lang);
|
||||
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository();
|
||||
}
|
||||
$GLOBALS['egw']->preferences->preferences($user_or_lang);
|
||||
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository();
|
||||
|
||||
if ($check && $this->check2pref) $check = $this->check2pref[$check];
|
||||
if ($check && !$GLOBALS['egw_info']['user']['preferences'][$this->app][$check])
|
||||
{
|
||||
|
@ -1007,7 +1007,12 @@ class nextmatch_widget
|
||||
case 'select-cat':
|
||||
if ($val)
|
||||
{
|
||||
$value[$key] = $GLOBALS['egw']->categories->id2name($val);
|
||||
$cats = array();
|
||||
foreach(is_array($val) ? $val : explode(',',$val) as $cat_id)
|
||||
{
|
||||
$cats[] = $GLOBALS['egw']->categories->id2name($cat_id);
|
||||
}
|
||||
$value[$key] = implode('; ',$cats);
|
||||
}
|
||||
break;
|
||||
case 'date-time':
|
||||
|
Loading…
Reference in New Issue
Block a user