[Vtigercrm-commits] [vtiger-commits] r11023 - in /vtigercrm/branches/5.0.3/include/utils: DetailViewUtils.php EditViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 24 15:30:18 EDT 2007
Author: richie
Date: Thu May 24 13:30:12 2007
New Revision: 11023
Log:
fixes for 3944 -allen .Fixes#3944
Modified:
vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php
vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php Thu May 24 13:30:12 2007
@@ -570,8 +570,11 @@
}
elseif($parent_module == "HelpDesk")
{
- $label_fld[] = $mod_strings[$fieldlabel];
- $label_fld[] = '';
+ $label_fld[] = $app_strings['LBL_HELPDESK_NAME'];
+ $sql = "select * from vtiger_troubletickets where ticketid=".$value;
+ $result = $adb->query($sql);
+ $title= $adb->query_result($result,0,"title");
+ $label_fld[] ='<a href="index.php?module='.$parent_module.'&action=DetailView&record='.$value.'">'.$title.'</a>';
}
}
else
Modified: vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php Thu May 24 13:30:12 2007
@@ -636,6 +636,12 @@
$result = $adb->query($sql);
$parent_name= $adb->query_result($result,0,"subject");
$quote_selected = "selected";
+ }elseif($parent_module == "HelpDesk")
+ {
+ $sql = "select * from vtiger_troubletickets where ticketid=".$value;
+ $result = $adb->query($sql);
+ $parent_name= $adb->query_result($result,0,"title");
+ $ticket_selected = "selected";
}
@@ -647,7 +653,8 @@
$app_strings['COMBO_INVOICES'],
$app_strings['COMBO_PORDER'],
$app_strings['COMBO_SORDER'],
- $app_strings['COMBO_QUOTES']
+ $app_strings['COMBO_QUOTES'],
+ $app_strings['COMBO_HELPDESK']
);
$editview_label[] = array($lead_selected,
$account_selected,
@@ -656,9 +663,10 @@
$invoice_selected,
$porder_selected,
$sorder_selected,
- $quote_selected
+ $quote_selected,
+ $ticket_selected
);
- $editview_label[] = array("Leads&action=Popup","Accounts&action=Popup","Potentials&action=Popup","Products&action=Popup","Invoice&action=Popup","PurchaseOrder&action=Popup","SalesOrder&action=Popup","Quotes&action=Popup");
+ $editview_label[] = array("Leads&action=Popup","Accounts&action=Popup","Potentials&action=Popup","Products&action=Popup","Invoice&action=Popup","PurchaseOrder&action=Popup","SalesOrder&action=Popup","Quotes&action=Popup","HelpDesk&action=Popup");
$fieldvalue[] =$parent_name;
$fieldvalue[] =$value;
More information about the vtigercrm-commits
mailing list