[Vtigercrm-commits] [vtiger-commits] r7756 - in /vtigercrm/trunk/modules/Products: AddProductToPriceBooks.php AddProductsToPriceBook.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 05:19:07 EDT 2006


Author: saraj
Date: Tue Jul  4 03:19:03 2006
New Revision: 7756

Log:
* Modified to fix the vtiger_ prefix issue

Modified:
    vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php
    vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php

Modified: vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php
==============================================================================
--- vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php (original)
+++ vtigercrm/trunk/modules/Products/AddProductToPriceBooks.php Tue Jul  4 03:19:03 2006
@@ -50,7 +50,7 @@
 $list_query = getListQuery("PriceBooks");
 $xtpl->assign("PRICEBOOKLISTHEADER", get_form_header($current_module_strings['LBL_LIST_PRICEBOOK_FORM_TITLE'], $other_text, false ));
 
-$list_query .= ' ORDER BY vtiger_pricebookid DESC ';
+$list_query .= ' ORDER BY pricebookid DESC ';
 
 $list_result = $adb->query($list_query);
 $num_rows = $adb->num_rows($list_result);

Modified: vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php
==============================================================================
--- vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php (original)
+++ vtigercrm/trunk/modules/Products/AddProductsToPriceBook.php Tue Jul  4 03:19:03 2006
@@ -58,7 +58,7 @@
 
 	$where_clauses = Array();
 	//Added for Custom Field Search
-	$sql="select * from vtiger_field where vtiger_tablename='productcf' order by vtiger_fieldlabel";
+	$sql="select * from vtiger_field where tablename='productcf' order by fieldlabel";
 	$result=$adb->query($sql);
 	for($i=0;$i<$adb->num_rows($result);$i++)
 	{





More information about the vtigercrm-commits mailing list