[Vtigercrm-commits] [vtiger-commits] r10020 - /vtigercrm/branches/5.0.3/modules/HelpDesk/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jan 3 10:53:36 EST 2007
Author: richie
Date: Wed Jan 3 08:53:32 2007
New Revision: 10020
Log:
Code contribution by john added for customfield trouble tickets.Fixes #2593
Modified:
vtigercrm/branches/5.0.3/modules/HelpDesk/Save.php
Modified: vtigercrm/branches/5.0.3/modules/HelpDesk/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/HelpDesk/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/HelpDesk/Save.php Wed Jan 3 08:53:32 2007
@@ -140,11 +140,25 @@
$desc .= '<br><br>Description : <br>'.$focus->column_fields['description'];
$desc .= '<br><br>Solution : <br>'.$focus->column_fields['solution'];
$desc .= getTicketComments($focus->id);
-
+
+ // code contribution by john read. Topik. 09.11.06
+ // get the ticketCF field contents
+ $sql = "SELECT * FROM vtiger_ticketcf WHERE ticketid = \"".$focus->id."\"";
+ $result = $adb->query($sql);
+ $cffields = $adb->getFieldsArray($result);
+ foreach ($cffields as $cfOneField)
+ {
+ if ($cfOneField != 'ticketid')
+ {
+ $cfData = $adb->query_result($result,0,$cfOneField);
+ $sql = "SELECT fieldlabel FROM vtiger_field WHERE columnname = \"$cfOneField\"";
+ $cfLabel = $adb->query_result($adb->query($sql),0,'fieldlabel');
+ $desc .= '<br><br>'.$cfLabel.' : <br>'.$cfData;
+ }
+ }
+ // end of contribution
$desc .= '<br><br><br>';
- $desc .= '<br><br><br>';
- $desc .= '<br><br><br>';
- $desc .= '<br>Regards, HelpDesk Team<br>';
+ $desc .= '<br>Regards,<br>HelpDesk Team<br>';
$email_body = $desc;
}
$_REQUEST['return_id'] = $return_id;
More information about the vtigercrm-commits
mailing list