[Vtigercrm-commits] [vtiger-commits] r9020 - in /vtigercrm/trunk: data/CRMEntity.php include/language/en_us.lang.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Aug 18 07:32:37 EDT 2006
Author: saraj
Date: Fri Aug 18 05:32:32 2006
New Revision: 9020
Log:
viewing a deleted record disabled. Fixes #1922
Modified:
vtigercrm/trunk/data/CRMEntity.php
vtigercrm/trunk/include/language/en_us.lang.php
Modified: vtigercrm/trunk/data/CRMEntity.php
==============================================================================
--- vtigercrm/trunk/data/CRMEntity.php (original)
+++ vtigercrm/trunk/data/CRMEntity.php Fri Aug 18 05:32:32 2006
@@ -1251,11 +1251,13 @@
*/
function retrieve_entity_info($record, $module)
{
- global $adb,$log;
+ global $adb,$log,$app_strings;
$result = Array();
foreach($this->tab_name_index as $table_name=>$index)
{
$result[$table_name] = $adb->query("select * from ".$table_name." where ".$index."=".$record);
+ if($adb->query_result($result["vtiger_crmentity"],0,"deleted") == 1)
+ die("<br><br><center>".$app_strings['LBL_RECORD_DELETE']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>");
}
$tabid = getTabid($module);
$sql1 = "select * from vtiger_field where tabid=".$tabid;
Modified: vtigercrm/trunk/include/language/en_us.lang.php
==============================================================================
--- vtigercrm/trunk/include/language/en_us.lang.php (original)
+++ vtigercrm/trunk/include/language/en_us.lang.php Fri Aug 18 05:32:32 2006
@@ -1003,6 +1003,9 @@
'LBL_FINAL_DISCOUNT_AMOUNT'=>'Final Discount Amount',
'LBL_SHIPPING_AND_HANDLING_CHARGE'=>'Shipping & Handling Charge',
'LBL_GO_BACK'=>'Go Back',
+
+//Record deleted message
+'LBL_RECORD_DELETE'=>'The record you are trying to view has been deleted.',
);
More information about the vtigercrm-commits
mailing list