[Vtigercrm-commits] [vtiger-commits] r9973 - in /vtigercrm/branches/5.0.3: Smarty/templates/ActivityDetailView.tpl modules/Calendar/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Dec 14 06:02:30 EST 2006
Author: richie
Date: Thu Dec 14 04:02:23 2006
New Revision: 9973
Log:
cannot see invited users in detailview
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl
vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ActivityDetailView.tpl Thu Dec 14 04:02:23 2006
@@ -203,7 +203,7 @@
<td width="30%" valign="top" align=right><b>{$MOD.LBL_USERS}</b></td>
<td width="70%" align=left valign="top" >
{foreach item=username key=userid from=$INVITEDUSERS}
- {$username.3}<br>
+ {$username}<br>
{/foreach}
</td>
</tr>
Modified: vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php Thu Dec 14 04:02:23 2006
@@ -28,7 +28,7 @@
require_once('include/utils/utils.php');
require_once('modules/Calendar/calendarLayout.php');
include_once 'modules/Calendar/header.php';
-global $mod_strings, $currentModule;
+global $mod_strings, $currentModule,$adb;
if( $_SESSION['mail_send_error']!="")
{
echo '<b><font color=red>'. $mod_strings{"LBL_NOTIFICATION_ERROR"}.'</font></b><br>';
@@ -247,8 +247,18 @@
$data['recurringcheck'] = 'No';
$data['repeat_month_str'] = '';
}
+ $sql = 'select vtiger_users.user_name,vtiger_invitees.* from vtiger_invitees left join vtiger_users on vtiger_invitees.inviteeid=vtiger_users.id where activityid='.$focus->id;
+ $result = $adb->query($sql);
+ $num_rows=$adb->num_rows($result);
+ $invited_users=Array();
+ for($i=0;$i<$num_rows;$i++)
+ {
+ $userid=$adb->query_result($result,$i,'inviteeid');
+ $username=$adb->query_result($result,$i,'user_name');
+ $invited_users[$userid]=$username;
+ }
+ $smarty->assign("INVITEDUSERS",$invited_users);
$related_array = getRelatedLists("Calendar", $focus);
- $smarty->assign("INVITEDUSERS",$related_array['Users']['entries']);
$smarty->assign("CONTACTS",$related_array['Contacts']['entries']);
More information about the vtigercrm-commits
mailing list