[Vtigercrm-commits] [vtiger-commits] r7375 - in /vtigercrm/trunk/modules/Quotes: DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:50:32 EDT 2006
Author: saraj
Date: Wed Jun 21 05:50:28 2006
New Revision: 7375
Log:
changes made to get validationdata
Modified:
vtigercrm/trunk/modules/Quotes/DetailView.php
vtigercrm/trunk/modules/Quotes/EditView.php
Modified: vtigercrm/trunk/modules/Quotes/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/DetailView.php (original)
+++ vtigercrm/trunk/modules/Quotes/DetailView.php Wed Jun 21 05:50:28 2006
@@ -91,49 +91,13 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
- $quote_tables = Array('quotes','quotesbillads','quotesshipads','quotescf');
$tabid = getTabid("Quotes");
- $validationData = getDBValidationData($quote_tables,$tabid);
- $fieldName = '';
- $fieldLabel = '';
- $fldDataType = '';
+ $validationData = getDBValidationData($focus->tab_name,$tabid);
+ $data = split_validationdataArray($validationData);
- $rows = count($validationData);
- foreach($validationData as $fldName => $fldLabel_array)
- {
- if($fieldName == '')
- {
- $fieldName="'".$fldName."'";
- }
- else
- {
- $fieldName .= ",'".$fldName ."'";
- }
- foreach($fldLabel_array as $fldLabel => $datatype)
- {
- if($fieldLabel == '')
- {
-
- $fieldLabel = "'".$fldLabel ."'";
- }
- else
- {
- $fieldLabel .= ",'".$fldLabel ."'";
- }
- if($fldDataType == '')
- {
- $fldDataType = "'".$datatype ."'";
- }
- else
- {
- $fldDataType .= ",'".$datatype ."'";
- }
- }
- }
-
-$smarty->assign("VALIDATION_DATA_FIELDNAME",$fieldName);
-$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$fldDataType);
-$smarty->assign("VALIDATION_DATA_FIELDLABEL",$fieldLabel);$quote_tables = Array('quotes','quotesbillads','quotesshipads');
+$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
+$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
+$smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
$smarty->display("Inventory/InventoryDetailView.tpl");
Modified: vtigercrm/trunk/modules/Quotes/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/EditView.php (original)
+++ vtigercrm/trunk/modules/Quotes/EditView.php Wed Jun 21 05:50:28 2006
@@ -203,9 +203,8 @@
-$quote_tables = Array('quotes','quotesbillads','quotesshipads','quotescf');
$tabid = getTabid("Quotes");
- $validationData = getDBValidationData($quote_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