[Vtigercrm-commits] [vtiger-commits] r4984 - /vtigercrm/trunk/modules/PriceBooks/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 7 03:54:05 EDT 2006
Author: saraj
Date: Fri Apr 7 01:54:01 2006
New Revision: 4984
Log:
Added the parentab redirection for Pbook module
Modified:
vtigercrm/trunk/modules/PriceBooks/Save.php
Modified: vtigercrm/trunk/modules/PriceBooks/Save.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/Save.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/Save.php Fri Apr 7 01:54:01 2006
@@ -32,12 +32,13 @@
$focus->save("PriceBooks");
$return_id = $focus->id;
+if(isset($_REQUEST['parenttab']) && $_REQUEST['parenttab'] != "") $parenttab = $_REQUEST['parenttab'];
if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != "") $return_module = $_REQUEST['return_module'];
else $return_module = "PriceBooks";
if(isset($_REQUEST['return_action']) && $_REQUEST['return_action'] != "") $return_action = $_REQUEST['return_action'];
else $return_action = "DetailView";
if(isset($_REQUEST['return_id']) && $_REQUEST['return_id'] != "") $return_id = $_REQUEST['return_id'];
-header("Location: index.php?action=$return_action&module=$return_module&record=$return_id");
+header("Location: index.php?action=$return_action&module=$return_module&parenttab=$parenttab&record=$return_id");
?>
More information about the vtigercrm-commits
mailing list