[Vtigercrm-commits] [vtiger-commits] r7357 - in /vtigercrm/trunk/modules/Faq: DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 06:57:20 EDT 2006
Author: saraj
Date: Wed Jun 21 04:57:16 2006
New Revision: 7357
Log:
changes made to get validationdata
Modified:
vtigercrm/trunk/modules/Faq/DetailView.php
vtigercrm/trunk/modules/Faq/EditView.php
Modified: vtigercrm/trunk/modules/Faq/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/DetailView.php (original)
+++ vtigercrm/trunk/modules/Faq/DetailView.php Wed Jun 21 04:57:16 2006
@@ -82,9 +82,8 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
-
-$faq_tables = Array('faq');
-$validationData = getDBValidationData($faq_tables);
+$tabid = getTabid("Faq");
+$validationData = getDBValidationData($focus->tab_name,$tabid);
$data = split_validationdataArray($validationData);
$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
Modified: vtigercrm/trunk/modules/Faq/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/EditView.php (original)
+++ vtigercrm/trunk/modules/Faq/EditView.php Wed Jun 21 04:57:16 2006
@@ -95,10 +95,9 @@
$smarty->assign("CALENDAR_DATEFORMAT", parse_calendardate($app_strings['NTC_DATE_FORMAT']));
-$faq_tables = Array('faq');
-
-$validationData = getDBValidationData($faq_tables);
- $data = split_validationdataArray($validationData);
+$tabid = getTabid("Faq");
+$validationData = getDBValidationData($focus->tab_name,$tabid);
+$data = split_validationdataArray($validationData);
$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
More information about the vtigercrm-commits
mailing list