[Vtigercrm-commits] [vtiger-commits] r5427 - in /vtigercrm/trunk/modules/Products: DetailView.php EditView.php ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 01:01:09 EDT 2006


Author: saraj
Date: Wed Apr 26 23:01:02 2006
New Revision: 5427

Log:
Added security check for buttons in List/Edit/Detail View - Ahmed

Modified:
    vtigercrm/trunk/modules/Products/DetailView.php
    vtigercrm/trunk/modules/Products/EditView.php
    vtigercrm/trunk/modules/Products/ListView.php

Modified: vtigercrm/trunk/modules/Products/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/DetailView.php (original)
+++ vtigercrm/trunk/modules/Products/DetailView.php Wed Apr 26 23:01:02 2006
@@ -60,6 +60,8 @@
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("ID", $_REQUEST['record']);
 
+$check_button = Button_Check($module);
+$smarty->assign("CHECK", $check_button);
 //Security check for related list
 $smarty->assign("MODULE", $module);
 $smarty->display("DetailView.tpl");

Modified: vtigercrm/trunk/modules/Products/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/EditView.php (original)
+++ vtigercrm/trunk/modules/Products/EditView.php Wed Apr 26 23:01:02 2006
@@ -161,6 +161,10 @@
 $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
 $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
 $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
+
+$check_button = Button_Check($module);
+$smarty->assign("CHECK", $check_button);
+
 if($focus->mode == 'edit')
 $smarty->display('salesEditView.tpl');
 else

Modified: vtigercrm/trunk/modules/Products/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/ListView.php (original)
+++ vtigercrm/trunk/modules/Products/ListView.php Wed Apr 26 23:01:02 2006
@@ -161,6 +161,8 @@
 $smarty->assign("VIEWID", $viewid);
 $smarty->assign("BUTTONS", $other_text);
 
+$check_button = Button_Check($module);
+$smarty->assign("CHECK", $check_button);
 
 if(isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '')
 	$smarty->display("ListViewEntries.tpl");





More information about the vtigercrm-commits mailing list