[Vtigercrm-commits] [vtiger-commits] r7362 - in /vtigercrm/trunk/modules/Invoice: DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:19:24 EDT 2006
Author: saraj
Date: Wed Jun 21 05:19:20 2006
New Revision: 7362
Log:
changes made to get validationdata and forms.php removed
Modified:
vtigercrm/trunk/modules/Invoice/DetailView.php
vtigercrm/trunk/modules/Invoice/EditView.php
Modified: vtigercrm/trunk/modules/Invoice/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/DetailView.php (original)
+++ vtigercrm/trunk/modules/Invoice/DetailView.php Wed Jun 21 05:19:20 2006
@@ -81,9 +81,8 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
-$invoice_tables = Array('invoice','invoicebillads','invoiceshipads','invoicecf');
$tabid = getTabid("Invoice");
-$validationData = getDBValidationData($invoice_tables,$tabid);
+$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/Invoice/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/EditView.php (original)
+++ vtigercrm/trunk/modules/Invoice/EditView.php Wed Jun 21 05:19:20 2006
@@ -25,7 +25,6 @@
require_once('modules/Invoice/Invoice.php');
require_once('modules/Quotes/Quote.php');
require_once('modules/SalesOrder/SalesOrder.php');
-require_once('modules/Invoice/Forms.php');
require_once('modules/Potentials/Opportunity.php');
require_once('include/CustomFieldUtil.php');
require_once('include/ComboUtil.php');
@@ -316,9 +315,8 @@
-$invoice_tables = Array('invoice','invoicebillads','invoiceshipads','invoicecf');
$tabid = getTabid("Invoice");
- $validationData = getDBValidationData($invoice_tables,$tabid);
+ $validationData = getDBValidationData($focus->tab_name,$tabid);
$data = split_validationdataArray($validationData);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
More information about the vtigercrm-commits
mailing list