[Vtigercrm-commits] [vtiger-commits] r7373 - in /vtigercrm/trunk/modules/Vendors: DetailView.php EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:45:34 EDT 2006


Author: saraj
Date: Wed Jun 21 05:45:30 2006
New Revision: 7373

Log:
changes made to get validationdata

Modified:
    vtigercrm/trunk/modules/Vendors/DetailView.php
    vtigercrm/trunk/modules/Vendors/EditView.php

Modified: vtigercrm/trunk/modules/Vendors/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/DetailView.php (original)
+++ vtigercrm/trunk/modules/Vendors/DetailView.php Wed Jun 21 05:45:30 2006
@@ -62,8 +62,8 @@
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 
-$vendor_tables = Array('vendor','vendorcf');
-$validationData = getDBValidationData($vendor_tables);
+$tabid = getTabid("Vendors");
+$validationData = getDBValidationData($focus->tab_name,$tabid);
 $data = split_validationdataArray($validationData);
 $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
 $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);

Modified: vtigercrm/trunk/modules/Vendors/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/EditView.php (original)
+++ vtigercrm/trunk/modules/Vendors/EditView.php Wed Jun 21 05:45:30 2006
@@ -83,10 +83,8 @@
 $smarty->assign("THEME", $theme);
 $smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 
-
-$vendor_tables = Array('vendor','vendorcf'); 
-
-$validationData = getDBValidationData($vendor_tables);
+$tabid = getTabid("Vendors");
+$validationData = getDBValidationData($focus->tab_name,$tabid);
 $data = split_validationdataArray($validationData);
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);





More information about the vtigercrm-commits mailing list