[Vtigercrm-commits] [vtiger-commits] r7248 - /vtigercrm/trunk/modules/Products/UpdateListPrice.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Jun 19 03:48:42 EDT 2006


Author: saraj
Date: Mon Jun 19 01:48:39 2006
New Revision: 7248

Log:
UpdateListPrice has been ajaxified

Modified:
    vtigercrm/trunk/modules/Products/UpdateListPrice.php

Modified: vtigercrm/trunk/modules/Products/UpdateListPrice.php
==============================================================================
--- vtigercrm/trunk/modules/Products/UpdateListPrice.php (original)
+++ vtigercrm/trunk/modules/Products/UpdateListPrice.php Mon Jun 19 01:48:39 2006
@@ -12,15 +12,14 @@
 global $adb;
 global $log;
 $log->debug("Going to update the ListPrice in (modules/Products/UpdateListPrice.php).");
-
 $record = $_REQUEST['record'];
 $pricebook_id = $_REQUEST['pricebook_id'];
 $product_id = $_REQUEST['product_id'];
 $listprice = $_REQUEST['list_price'];
 $return_action = $_REQUEST['return_action'];
+$return_module = $_REQUEST['return_module'];
 
 $query = "update vtiger_pricebookproductrel set listprice=".$listprice." where pricebookid=".$pricebook_id." and productid=".$product_id;
 $adb->query($query); 
-
-header("Location: index.php?action=$return_action&module=PriceBooks&record=$record");
+header("Location: index.php?module=$return_module&action=".$return_module."Ajax&file=$return_action&ajax=updatelistprice&record=$record");
 ?>





More information about the vtigercrm-commits mailing list