diff --git a/modules/Calendar/actions/Feed.php b/modules/Calendar/actions/Feed.php index c053754e48a1480f865d2b2f600b149e4731d9ba..6eeb40d44d81f675371ca6f39d2703847dc0f38a 100644 --- a/modules/Calendar/actions/Feed.php +++ b/modules/Calendar/actions/Feed.php @@ -55,15 +55,9 @@ class Calendar_Feed_Action extends Vtiger_BasicAjax_Action { try { foreach ($request as $k => $v) { if ($k == 'conditions' || $k == 'mapping') continue; - - if ($k == 'fieldname' && $v) { - $vp = explode(',', $v); - $v = array(); - foreach ($vp as $p) $v[] = $this->valForSql($p); - $request[$k] = implode(',', $v); - } else { - $request[$k] = $this->valForSql($v); - } + $param = explode(',', $request[$key]); + $value = $this->valForSql($param); + $request[$key] = implode(',',$value); } $start = $request['start'];