diff --git a/modules/Calendar/actions/Feed.php b/modules/Calendar/actions/Feed.php index ff1fd139f404ff9398daf6892e858c32c53f7b76..301389d6f3e9b16e853ffbcc02a8fcc858cfc31e 100644 --- a/modules/Calendar/actions/Feed.php +++ b/modules/Calendar/actions/Feed.php @@ -334,7 +334,7 @@ class Calendar_Feed_Action extends Vtiger_BasicAjax_Action { $user = Users_Record_Model::getCurrentUserModel(); $userAndGroupIds = array_merge(array($user->getId()),$this->getGroupsIdsForUsers($user->getId())); $params = array($start,$end,$start); - $params = array_merge($params, $userAndGroupIds); + $params = array_merge($userAndGroupIds, $params); $query = "SELECT projectname, startdate, targetenddate, crmid FROM vtiger_project"; $query.= " INNER JOIN vtiger_crmentity ON vtiger_project.projectid = vtiger_crmentity.crmid"; @@ -392,4 +392,4 @@ class Calendar_Feed_Action extends Vtiger_BasicAjax_Action { } } -} \ No newline at end of file +}