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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 06:35:19 EDT 2006


Author: saraj
Date: Wed Jun 21 04:35:15 2006
New Revision: 7348

Log:
changes made to get validationdata

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

Modified: vtigercrm/trunk/modules/Contacts/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/DetailView.php (original)
+++ vtigercrm/trunk/modules/Contacts/DetailView.php Wed Jun 21 04:35:15 2006
@@ -23,7 +23,6 @@
 require_once('Smarty_setup.php');
 require_once('data/Tracker.php');
 require_once('modules/Contacts/Contact.php');
-require_once('modules/Contacts/Forms.php');
 require_once('include/CustomFieldUtil.php');
 require_once('include/database/PearDatabase.php');
 require_once('include/utils/utils.php');
@@ -111,10 +110,8 @@
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 
-$contact_tables =Array('contactdetails','crmentity','contactsubdetails','contactscf','contactaddress','customerdetails');
-
 $tabid = getTabid("Contacts");
-$validationData = getDBValidationData($contact_tables,$tabid);
+$validationData = getDBValidationData($focus->tab_name,$tabid);
 $data = split_validationdataArray($validationData);
 
 $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);

Modified: vtigercrm/trunk/modules/Contacts/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/EditView.php (original)
+++ vtigercrm/trunk/modules/Contacts/EditView.php Wed Jun 21 04:35:15 2006
@@ -23,7 +23,6 @@
 require_once('Smarty_setup.php');
 require_once('data/Tracker.php');
 require_once('modules/Contacts/Contact.php');
-require_once('modules/Contacts/Forms.php');
 require_once('include/CustomFieldUtil.php');
 require_once('include/ComboUtil.php');
 require_once('include/utils/utils.php');
@@ -129,7 +128,6 @@
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
 $smarty->assign("NAME",$focus->lastname." ".$focus->firstname);
-$smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
 if(isset($cust_fld))
 {
         $smarty->assign("CUSTOMFIELD", $cust_fld);
@@ -165,11 +163,8 @@
 $smarty->assign("IMAGE_PATH", $image_path);
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 
-
-$contact_tables = Array('contactdetails','crmentity','contactsubdetails','contactscf','contactaddress','customerdetails'); 
-
  $tabid = getTabid("Contacts");
- $validationData = getDBValidationData($contact_tables,$tabid);
+ $validationData = getDBValidationData($focus->tab_name,$tabid);
  $data = split_validationdataArray($validationData);
 
  $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);





More information about the vtigercrm-commits mailing list