[Vtigercrm-commits] [vtiger-commits] r7735 - in /vtigercrm/trunk/modules: Accounts/ Activities/ Campaigns/ Contacts/ Emails/ HelpDesk/ Invoice/ Leads/ Notes/ Potentials/ PriceBooks/ Products/ PurchaseOrder/ SalesOrder/ Vendors/

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Jul 3 03:12:52 EDT 2006


Author: saraj
Date: Mon Jul  3 01:12:35 2006
New Revision: 7735

Log:
* Modified the SINGLE_MOD value from app_strings to direct string value because if we use app_strings, in other languages it will affect to include the js file

Modified:
    vtigercrm/trunk/modules/Accounts/DetailView.php
    vtigercrm/trunk/modules/Activities/DetailView.php
    vtigercrm/trunk/modules/Campaigns/DetailView.php
    vtigercrm/trunk/modules/Contacts/DetailView.php
    vtigercrm/trunk/modules/Emails/DetailView.php
    vtigercrm/trunk/modules/HelpDesk/DetailView.php
    vtigercrm/trunk/modules/Invoice/DetailView.php
    vtigercrm/trunk/modules/Leads/DetailView.php
    vtigercrm/trunk/modules/Notes/DetailView.php
    vtigercrm/trunk/modules/Potentials/DetailView.php
    vtigercrm/trunk/modules/PriceBooks/DetailView.php
    vtigercrm/trunk/modules/Products/DetailView.php
    vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
    vtigercrm/trunk/modules/SalesOrder/DetailView.php
    vtigercrm/trunk/modules/Vendors/DetailView.php

Modified: vtigercrm/trunk/modules/Accounts/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/DetailView.php (original)
+++ vtigercrm/trunk/modules/Accounts/DetailView.php Mon Jul  3 01:12:35 2006
@@ -65,7 +65,7 @@
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD",$app_strings['Account']);
+$smarty->assign("SINGLE_MOD",'Account');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/Activities/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/DetailView.php (original)
+++ vtigercrm/trunk/modules/Activities/DetailView.php Mon Jul  3 01:12:35 2006
@@ -122,7 +122,7 @@
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD", $app_strings['Activity']);
+$smarty->assign("SINGLE_MOD", 'Activity');
 $smarty->assign("NEW_EVENT",$app_strings['LNK_NEW_EVENT']);
 $smarty->assign("NEW_TASK",$app_strings['LNK_NEW_TASK']);
 

Modified: vtigercrm/trunk/modules/Campaigns/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/DetailView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/DetailView.php Mon Jul  3 01:12:35 2006
@@ -41,7 +41,7 @@
 $smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD",$app_strings['Campaign']);
+$smarty->assign("SINGLE_MOD",'Campaign');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/Contacts/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/DetailView.php (original)
+++ vtigercrm/trunk/modules/Contacts/DetailView.php Mon Jul  3 01:12:35 2006
@@ -70,7 +70,7 @@
 $log->info("Detail Block Informations successfully retrieved.");
 $smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD",$app_strings['Contact']);
+$smarty->assign("SINGLE_MOD", 'Contact');
 $smarty->assign("REDIR_MOD","contacts");
 
 $smarty->assign("ID", $_REQUEST['record']);

Modified: vtigercrm/trunk/modules/Emails/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/DetailView.php (original)
+++ vtigercrm/trunk/modules/Emails/DetailView.php Mon Jul  3 01:12:35 2006
@@ -133,7 +133,7 @@
 $entries = getBlocks($currentModule,"detail_view",'',$focus->column_fields);
 $entries['Email Information']['4']['Description']['value'] = from_html($entries['Email Information']['4']['Description']['value']);
 $smarty->assign("BLOCKS", $entries['Email Information']);
-$smarty->assign("SINGLE_MOD",$app_strings['Email']);
+$smarty->assign("SINGLE_MOD", 'Email');
 
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 

Modified: vtigercrm/trunk/modules/HelpDesk/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/DetailView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/DetailView.php Mon Jul  3 01:12:35 2006
@@ -53,7 +53,7 @@
 $smarty->assign("TICKETID", $_REQUEST['record']);
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD",$app_strings['Ticket']);
+$smarty->assign("SINGLE_MOD", 'HelpDesk');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 $smarty->assign("UPDATEINFO",updateInfo($_REQUEST['record']));

Modified: vtigercrm/trunk/modules/Invoice/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/DetailView.php (original)
+++ vtigercrm/trunk/modules/Invoice/DetailView.php Mon Jul  3 01:12:35 2006
@@ -63,7 +63,7 @@
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD", $app_strings['Invoice']);
+$smarty->assign("SINGLE_MOD", 'Invoice');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/Leads/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/DetailView.php (original)
+++ vtigercrm/trunk/modules/Leads/DetailView.php Mon Jul  3 01:12:35 2006
@@ -53,9 +53,10 @@
 $smarty->assign("APP", $app_strings);
 
 $smarty->assign("THEME", $theme);
-$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
+$smarty->assign("IMAGE_PATH", $image_path);
+$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("ID", $focus->id);
-$smarty->assign("SINGLE_MOD",$app_strings['Lead']);
+$smarty->assign("SINGLE_MOD", 'Lead');
 $smarty->assign("REDIR_MOD","leads");
 
 $smarty->assign("NAME",$focus->lastname.' '.$focus->firstname);

Modified: vtigercrm/trunk/modules/Notes/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/DetailView.php (original)
+++ vtigercrm/trunk/modules/Notes/DetailView.php Mon Jul  3 01:12:35 2006
@@ -82,7 +82,8 @@
 if (isset($_REQUEST['return_id'])) $smarty->assign("RETURN_ID", $_REQUEST['return_id']);
 
 $smarty->assign("THEME", $theme);
-$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
+$smarty->assign("IMAGE_PATH", $image_path);
+$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("ID", $focus->id);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
@@ -93,7 +94,7 @@
 	$smarty->assign("FILELINK", $fileurl);
 }
 
-$smarty->assign("SINGLE_MOD",$app_strings['Note']);
+$smarty->assign("SINGLE_MOD", 'Note');
 
 if(isPermitted("Notes","EditView",$_REQUEST['record']) == 'yes')
 	$smarty->assign("EDIT_DUPLICATE","permitted");

Modified: vtigercrm/trunk/modules/Potentials/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/DetailView.php (original)
+++ vtigercrm/trunk/modules/Potentials/DetailView.php Mon Jul  3 01:12:35 2006
@@ -53,7 +53,8 @@
 $smarty->assign("APP", $app_strings);
 
 $smarty->assign("THEME", $theme);
-$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
+$smarty->assign("IMAGE_PATH", $image_path);
+$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("ID", $focus->id);
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 
@@ -65,7 +66,7 @@
 $smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD",$app_strings['Potential']);
+$smarty->assign("SINGLE_MOD", 'Opportunity');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/PriceBooks/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/DetailView.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/DetailView.php Mon Jul  3 01:12:35 2006
@@ -71,7 +71,7 @@
 $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
 
 $smarty->assign("MODULE", $currentModule);
-$smarty->assign("SINGLE_MOD",$app_strings['PriceBook']);
+$smarty->assign("SINGLE_MOD", 'PriceBook');
 $smarty->assign("EDIT_PERMISSION",isPermitted($currentModule,'EditView',$_REQUEST[record]));
 $smarty->display("Inventory/InventoryDetailView.tpl");
 ?>

Modified: vtigercrm/trunk/modules/Products/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/DetailView.php (original)
+++ vtigercrm/trunk/modules/Products/DetailView.php Mon Jul  3 01:12:35 2006
@@ -54,7 +54,7 @@
 
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
-$smarty->assign("SINGLE_MOD",$app_strings['Product']);
+$smarty->assign("SINGLE_MOD", 'Product');
 
 if(isPermitted("Products","EditView",$_REQUEST['record']) == 'yes')
 	$smarty->assign("EDIT_DUPLICATE","permitted");

Modified: vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/DetailView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/DetailView.php Mon Jul  3 01:12:35 2006
@@ -63,7 +63,7 @@
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD",$app_strings['PurchaseOrder']);
+$smarty->assign("SINGLE_MOD", 'PurchaseOrder');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/SalesOrder/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/DetailView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/DetailView.php Mon Jul  3 01:12:35 2006
@@ -64,7 +64,7 @@
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("ID", $_REQUEST['record']);
-$smarty->assign("SINGLE_MOD",$app_strings['SalesOrder']);
+$smarty->assign("SINGLE_MOD", 'SalesOrder');
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);
 

Modified: vtigercrm/trunk/modules/Vendors/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/DetailView.php (original)
+++ vtigercrm/trunk/modules/Vendors/DetailView.php Mon Jul  3 01:12:35 2006
@@ -57,7 +57,7 @@
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("ID", $_REQUEST['record']);
 $smarty->assign("MODULE", $currentModule);
-$smarty->assign("SINGLE_MOD",$app_strings['Vendor']);
+$smarty->assign("SINGLE_MOD", 'Vendor');
 
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);





More information about the vtigercrm-commits mailing list