[Vtigercrm-commits] [vtiger-commits] r7143 - /vtigercrm/trunk/include/utils/EditViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 11:29:14 EDT 2006


Author: saraj
Date: Thu Jun 15 09:29:10 2006
New Revision: 7143

Log:
changes made to get CampaignName 

Modified:
    vtigercrm/trunk/include/utils/EditViewUtils.php

Modified: vtigercrm/trunk/include/utils/EditViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/EditViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/EditViewUtils.php Thu Jun 15 09:29:10 2006
@@ -474,6 +474,32 @@
 		$fieldvalue[] = $contact_name;
 		$fieldvalue[] = $value;
 	}
+
+	elseif($uitype == 58)
+	{
+
+		if($value != '')
+		{
+			$campaign_name = getCampaignName($value);
+		}
+		elseif(isset($_REQUEST['campaignid']) && $_REQUEST['campaignid'] != '')
+		{
+			if($_REQUEST['module'] == 'Campaigns' && $fieldname = 'campaignid')
+			{
+				$campaign_name = '';
+			}
+			else
+			{
+				$value = $_REQUEST['campaignid'];
+				$campaign_name = getCampaignName($value);
+			}
+
+		}
+		$editview_label[]=$mod_strings[$fieldlabel];
+		$fieldvalue[]=$campaign_name;
+		$fieldvalue[] = $value;
+	}
+	
 	elseif($uitype == 61)
 	{
 		global $current_user;





More information about the vtigercrm-commits mailing list