[Vtigercrm-commits] [vtiger-commits] r7364 - in /vtigercrm/trunk/modules/Leads: DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:24:59 EDT 2006
Author: saraj
Date: Wed Jun 21 05:24:55 2006
New Revision: 7364
Log:
changes made to get validationdata and forms.php removed
Modified:
vtigercrm/trunk/modules/Leads/DetailView.php
vtigercrm/trunk/modules/Leads/EditView.php
Modified: vtigercrm/trunk/modules/Leads/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/DetailView.php (original)
+++ vtigercrm/trunk/modules/Leads/DetailView.php Wed Jun 21 05:24:55 2006
@@ -15,7 +15,6 @@
require_once('Smarty_setup.php');
require_once('data/Tracker.php');
require_once('modules/Leads/Lead.php');
-require_once('modules/Leads/Forms.php');
require_once('include/database/PearDatabase.php');
require_once('include/CustomFieldUtil.php');
require_once('include/utils/utils.php');
@@ -110,9 +109,8 @@
$smarty->assign("TOPTIONS",$optionString);
}
-$lead_tables = Array('leaddetails','crmentity','leadsubdetails','leadaddress','leadscf');
$tabid = getTabid("Leads");
-$validationData = getDBValidationData($lead_tables,$tabid);
+$validationData = getDBValidationData($focus->tab_name,$tabid);
$data = split_validationdataArray($validationData);
$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
Modified: vtigercrm/trunk/modules/Leads/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/EditView.php (original)
+++ vtigercrm/trunk/modules/Leads/EditView.php Wed Jun 21 05:24:55 2006
@@ -15,7 +15,6 @@
require_once('Smarty_setup.php');
require_once('data/Tracker.php');
require_once('modules/Leads/Lead.php');
-require_once('modules/Leads/Forms.php');
require_once('include/database/PearDatabase.php');
require_once('include/CustomFieldUtil.php');
require_once('include/ComboUtil.php');
@@ -88,7 +87,6 @@
$smarty->assign("RETURN_VIEWNAME", $_REQUEST['return_viewname']);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id());
-$smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
$smarty->assign("ID", $focus->id);
$smarty->assign("MODULE",$currentModule);
$smarty->assign("SINGLE_MOD",$app_strings['Lead']);
@@ -100,9 +98,8 @@
$smarty->assign("CALENDAR_DATEFORMAT", parse_calendardate($app_strings['NTC_DATE_FORMAT']));
- $lead_tables = Array('leaddetails','crmentity','leadsubdetails','leadaddress','leadscf');
$tabid = getTabid("Leads");
- $validationData = getDBValidationData($lead_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