[Vtigercrm-commits] [Vtiger development] #8645: Projects are not visible in the calender
Vtiger development
vtiger-tickets at trac.vtiger.com
Mon Oct 19 15:23:44 GMT 2015
#8645: Projects are not visible in the calender
------------------------+------------------------
Reporter: manu | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 6.4.0
Severity: Medium | Keywords:
------------------------+------------------------
in modules/Calendar/actions/Feed.php in the pullProjects function at line
337 there is:
$params = array_merge($params,$userAndGroupIds);
which then gets used in this query . . .
$query = "SELECT projectname, startdate, targetenddate,
crmid FROM vtiger_project";
$query.= " INNER JOIN vtiger_crmentity ON
vtiger_project.projectid = vtiger_crmentity.crmid";
$query.= " WHERE vtiger_crmentity.deleted=0 AND smownerid
IN (". generateQuestionMarks($userAndGroupIds) .") AND ";
$query.= " ((startdate >= ? AND targetenddate < ?) OR (
targetenddate >= ?))";
$queryResult = $db->pquery($query, $params);
however, the questionmarks for the users and groups come before the date
parameters, so it doesn't work and projects don't display on the calendar,
changing line 337 to put the users and groups first fixes it:
$params = array_merge($userAndGroupIds,$params);
http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-projects-on-
the-calendar-td17753.html
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8645>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list