[Vtigercrm-commits] [vtiger-commits] r7087 - in /vtigercrm/trunk: Smarty/templates/DetailView.tpl modules/Contacts/Delete.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 14 09:34:37 EDT 2006
Author: saraj
Date: Wed Jun 14 07:34:30 2006
New Revision: 7087
Log:
Parent tab issue while deleting contact resolved. Fixes #913
Modified:
vtigercrm/trunk/Smarty/templates/DetailView.tpl
vtigercrm/trunk/modules/Contacts/Delete.php
Modified: vtigercrm/trunk/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailView.tpl Wed Jun 14 07:34:30 2006
@@ -64,6 +64,7 @@
{include file='Buttons_List1.tpl'}
+ <input type="hidden" name="parenttab" value={$CATEGORY}></input>
<!-- Contents -->
<table border=0 cellspacing=0 cellpadding=0 width=98% align=center>
<tr>
Modified: vtigercrm/trunk/modules/Contacts/Delete.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/Delete.php (original)
+++ vtigercrm/trunk/modules/Contacts/Delete.php Wed Jun 14 07:34:30 2006
@@ -33,5 +33,7 @@
//code added for returning back to the current view after delete from list view
if($_REQUEST['return_viewname'] == '') $return_viewname='0';
if($_REQUEST['return_viewname'] != '')$return_viewname=$_REQUEST['return_viewname'];
-header("Location: index.php?module=".$_REQUEST['return_module']."&action=".$_REQUEST['return_action']."&activity_mode=".$_REQUEST['activity_mode']."&record=".$_REQUEST['return_id']."&viewname=".$return_viewname);
+if(isset($_REQUEST['parenttab']) && $_REQUEST['parenttab'] != "") $parenttab = $_REQUEST['parenttab'];
+
+header("Location: index.php?module=".$_REQUEST['return_module']."&action=".$_REQUEST['return_action']."&parenttab=$parenttab&activity_mode=".$_REQUEST['activity_mode']."&record=".$_REQUEST['return_id']."&viewname=".$return_viewname);
?>
More information about the vtigercrm-commits
mailing list