fixed sometimes wrong prefs for to notified user were used (because more then one user got notified)

This commit is contained in:
Ralf Becker 2009-11-03 10:27:36 +00:00
parent a276e48d48
commit a8f61e517d
2 changed files with 9 additions and 6 deletions

View File

@ -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])
{

View File

@ -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':