"fix csv export to correctly export multiple categories (semicolon separated)"

This commit is contained in:
Ralf Becker 2009-09-18 14:09:11 +00:00
parent 6ab542b88b
commit 8db94f2471

View File

@ -1047,7 +1047,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':