[Vtigercrm-commits] [vtiger-commits] r11141 - /vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue May 29 16:54:30 EDT 2007


Author: richie
Date: Tue May 29 14:54:26 2007
New Revision: 11141

Log:
* Fixed the issue in customview when we selected contact name as a column

Modified:
    vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php

Modified: vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php Tue May 29 14:54:26 2007
@@ -229,6 +229,16 @@
 foreach($modules_array as $module)
 {
 	ExecuteQuery("update vtiger_cvcolumnlist inner join vtiger_customview on vtiger_customview.cvid=vtiger_cvcolumnlist.cvid set columnname='vtiger_account:accountname:accountname:".$module."_Account_Name:V' where columnname like '%:accountid:account_id:%' and vtiger_customview.entitytype='".$module."'");
+}
+
+//Previously PurchaseOrder was named as Order. Now we have to change the entitytype from Orders to PurchaseOrder
+ExecuteQuery("update vtiger_customview set entitytype='PurchaseOrder' where entitytype='Orders'");
+
+//ContactName is shown as empty in SO/Quotes/Invoice listview because of contact details in vtiger_cvcolumnlist.columnname
+$modules_array = Array("SalesOrder","Quotes","Invoice","PurchaseOrder","Notes","Calendar");
+foreach($modules_array as $module)
+{
+	ExecuteQuery("update vtiger_cvcolumnlist inner join vtiger_customview on vtiger_customview.cvid=vtiger_cvcolumnlist.cvid set columnname='vtiger_contactdetails:lastname:lastname:".$module."_Contact_Name:V' where columnname like '%:contactid:contact_id:%' and vtiger_customview.entitytype='".$module."'");
 }
 
 /*





More information about the vtigercrm-commits mailing list