[Vtigercrm-commits] [vtiger-commits] r9282 - /vtigercrm/trunk/include/utils/DetailViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Sep 5 08:55:07 EDT 2006
Author: saraj
Date: Tue Sep 5 06:55:02 2006
New Revision: 9282
Log:
changes made to display Campaign and Trouble tickets in activities detailview --Minnie
Modified:
vtigercrm/trunk/include/utils/DetailViewUtils.php
Modified: vtigercrm/trunk/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/DetailViewUtils.php Tue Sep 5 06:55:02 2006
@@ -639,6 +639,26 @@
$label_fld[] = '<a href="index.php?module='.$parent_module.'&action=DetailView&record='.$value.'">'.$invoicename.'</a>';
}
+ elseif($parent_module == "Campaigns")
+ {
+ $label_fld[] = $app_strings['LBL_CAMPAIGN_NAME'];
+ $sql = "select * from vtiger_campaign where campaignid=".$value;
+ $result = $adb->query($sql);
+ $campaignname = $adb->query_result($result,0,"campaignname");
+ $label_fld[] = '<a href="index.php?module='.$parent_module.'&action=DetailView&record='.$value.'">'.$campaignname.'</a>';
+ }
+ elseif($parent_module == "HelpDesk")
+ {
+ $label_fld[] = $app_strings['LBL_HELPDESK_NAME'];
+ $sql = "select * from vtiger_troubletickets where ticketid=".$value;
+ $result = $adb->query($sql);
+ $tickettitle = $adb->query_result($result,0,"title");
+ if(strlen($tickettitle) > 25)
+ {
+ $tickettitle = substr($tickettitle,0,25).'...';
+ }
+ $label_fld[] = '<a href="index.php?module='.$parent_module.'&action=DetailView&record='.$value.'">'.$tickettitle.'</a>';
+ }
}
else
More information about the vtigercrm-commits
mailing list