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

This commit is contained in:
Ralf Becker 2009-09-18 14:15:03 +00:00
parent 6bbf357277
commit 342239e064

View File

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