[Vtigercrm-commits] [vtiger-commits] r5081 - /vtigercrm/branches/4.2_postgresql_integration/modules/CustomView/ListViewTop.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 12 23:32:08 EDT 2006


Author: jeffk
Date: Wed Apr 12 21:32:04 2006
New Revision: 5081

Log:
refs #62 and #17. merging source:vtigercrm/branches/4.2 r5012 through r5080 to source:vtigercrm/branches/4.2_postgresql_integration. CRMEntity.php line for fldvalue=null already merged in postgresql branch, diff limited to ListViewTop.php only.

Modified:
    vtigercrm/branches/4.2_postgresql_integration/modules/CustomView/ListViewTop.php

Modified: vtigercrm/branches/4.2_postgresql_integration/modules/CustomView/ListViewTop.php
==============================================================================
--- vtigercrm/branches/4.2_postgresql_integration/modules/CustomView/ListViewTop.php (original)
+++ vtigercrm/branches/4.2_postgresql_integration/modules/CustomView/ListViewTop.php Wed Apr 12 21:32:04 2006
@@ -26,6 +26,7 @@
 require_once('include/ListView/ListView.php');
 
 global $app_strings;
+global $moduleList;
 global $adb;
 global $vtlog;
 
@@ -72,6 +73,14 @@
 $oddRow = true;
 foreach($metriclists as $metriclist)
 {
+	if(!in_array($metriclist['module'], $moduleList)) {
+		$sub_module = $metriclist['module'];
+		if($sub_module == 'Vendor' || $sub_module == 'PriceBook') {
+			$metriclist['module'] = 'Products&smodule='.strtoupper($sub_module);
+		} else if ($sub_module == 'SalesOrder') {
+			$metriclist['module'] = 'Orders&smodule=SO';
+		}
+	}
 	$metric_fields = array(
 		'ID' => $metriclist['id'],
 		'NAME' => $metriclist['name'],





More information about the vtigercrm-commits mailing list