[Vtigercrm-commits] [vtiger-commits] r6836 - /vtigercrm/trunk/modules/Calendar/Appointment.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 31 06:58:25 EDT 2006
Author: saraj
Date: Wed May 31 04:58:18 2006
New Revision: 6836
Log:
visibility has been removed from query
Modified:
vtigercrm/trunk/modules/Calendar/Appointment.php
Modified: vtigercrm/trunk/modules/Calendar/Appointment.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/Appointment.php (original)
+++ vtigercrm/trunk/modules/Calendar/Appointment.php Wed May 31 04:58:18 2006
@@ -58,7 +58,7 @@
$q.=" ((activity.date_start < '". $to_datetime->get_formatted_date() ."' AND activity.date_start >= '". $from_datetime->get_formatted_date()."')";
if(!is_admin($current_user))
{
- $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."') or (crmentity.smownerid in (".$shared_ids.") and salesmanactivityrel.smid in (".$shared_ids.") and activity.visibility='Public'))";
+ $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."') or (crmentity.smownerid in (".$shared_ids.") and salesmanactivityrel.smid in (".$shared_ids.")))";
}
$q .= " AND crmentity.deleted = 0) AND recurringevents.activityid is NULL ";
$q .= " ORDER by activity.date_start,activity.time_start";
@@ -86,7 +86,7 @@
$q .= " (recurringdate < '".$to_datetime->get_formatted_date()."' AND recurringdate >= '".$from_datetime->get_formatted_date(). "') ";
if(!is_admin($current_user))
{
- $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."' ) or (crmentity.smownerid in (".$shared_ids.") and salesmanactivityrel.smid in (".$shared_ids.") and activity.visibility='Public'))";
+ $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."' ) or (crmentity.smownerid in (".$shared_ids.") and salesmanactivityrel.smid in (".$shared_ids.")))";
}
$q .= " AND crmentity.deleted = 0 )" ;
More information about the vtigercrm-commits
mailing list