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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:32:30 EDT 2006


Author: saraj
Date: Wed Jun 21 05:32:26 2006
New Revision: 7366

Log:
changes made to get validationdata and forms.php removed

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

Modified: vtigercrm/trunk/modules/Products/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/DetailView.php (original)
+++ vtigercrm/trunk/modules/Products/DetailView.php Wed Jun 21 05:32:26 2006
@@ -10,7 +10,6 @@
  ********************************************************************************/
 require_once('include/database/PearDatabase.php');
 require_once('Smarty_setup.php');
-require_once('include/utils/utils.php');
 require_once('modules/Products/Product.php');
 require_once('include/utils/utils.php');
 
@@ -79,8 +78,8 @@
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 
- $product_tables = Array('products','productcf','productcollaterals');
- $validationData = getDBValidationData($product_tables);
+ $tabid = getTabid("Products");
+ $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/Products/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/EditView.php (original)
+++ vtigercrm/trunk/modules/Products/EditView.php Wed Jun 21 05:32:26 2006
@@ -164,9 +164,8 @@
 
 
 
-$product_tables = Array('products','productcf','productcollaterals'); 
-
- $validationData = getDBValidationData($product_tables);
+ $tabid = getTabid("Products");
+ $validationData = getDBValidationData($focus->tab_name,$tabid);
  $data = split_validationdataArray($validationData);
 if($errormessage==2)
 {





More information about the vtigercrm-commits mailing list