[Vtigercrm-commits] [vtiger-commits] r7278 - in /vtigercrm/trunk/modules/Users: add2db.php saveemailtemplate.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 20 02:21:55 EDT 2006


Author: saraj
Date: Tue Jun 20 00:21:50 2006
New Revision: 7278

Log:
Parenttab for email templates & mailmerge templates made proper - ahmed

Modified:
    vtigercrm/trunk/modules/Users/add2db.php
    vtigercrm/trunk/modules/Users/saveemailtemplate.php

Modified: vtigercrm/trunk/modules/Users/add2db.php
==============================================================================
--- vtigercrm/trunk/modules/Users/add2db.php (original)
+++ vtigercrm/trunk/modules/Users/add2db.php Tue Jun 20 00:21:50 2006
@@ -75,9 +75,9 @@
 			$result = $adb->query($sql);
 			if($result!=false)
 			{
-			   $result = $adb->updateBlob('wordtemplates','data'," filename='".$filename."'",$data);
+			   $result = $adb->updateBlob('vtiger_wordtemplates','data'," filename='".$filename."'",$data);
 			   deleteFile($uploaddir,$filename);
-			   header("Location: index.php?action=listwordtemplates&module=Users");	
+			   header("Location: index.php?action=listwordtemplates&module=Users&parenttab=Settings");	
 			}
 			else
 			{

Modified: vtigercrm/trunk/modules/Users/saveemailtemplate.php
==============================================================================
--- vtigercrm/trunk/modules/Users/saveemailtemplate.php (original)
+++ vtigercrm/trunk/modules/Users/saveemailtemplate.php Tue Jun 20 00:21:50 2006
@@ -37,7 +37,7 @@
 	$adb->query($sql);
  
 	$log->info("about to invoke the detailviewemailtemplate file");  
-	header("Location:index.php?module=Users&action=detailviewemailtemplate&templateid=".$templateid);
+	header("Location:index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid=".$templateid);
 }
 else
 {
@@ -46,6 +46,6 @@
 	$adb->query($sql);
 
 	 $log->info("added to the db the emailtemplate");
-	header("Location:index.php?module=Users&action=detailviewemailtemplate&templateid=".$templateid);
+	header("Location:index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid=".$templateid);
 }
 ?>





More information about the vtigercrm-commits mailing list