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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:11:14 EDT 2006


Author: saraj
Date: Wed Jun 21 05:11:10 2006
New Revision: 7360

Log:
changes made to get validationdata and forms.php removed

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

Modified: vtigercrm/trunk/modules/HelpDesk/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/DetailView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/DetailView.php Wed Jun 21 05:11:10 2006
@@ -11,7 +11,6 @@
 
 require_once('include/database/PearDatabase.php');
 require_once('Smarty_setup.php');
-require_once('include/utils/utils.php');
 require_once('modules/HelpDesk/HelpDesk.php');
 require_once('include/utils/utils.php');
 
@@ -91,9 +90,8 @@
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 
-$ticket_tables = Array('troubletickets','crmentity','ticketcf');
 $tabid = getTabid("HelpDesk");
-$validationData = getDBValidationData($ticket_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/HelpDesk/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/EditView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/EditView.php Wed Jun 21 05:11:10 2006
@@ -12,7 +12,6 @@
 require_once('Smarty_setup.php');
 require_once('include/utils/utils.php');
 require_once('modules/HelpDesk/HelpDesk.php');
-require_once('modules/HelpDesk/Forms.php');
 require_once('include/FormValidationUtil.php');
 
 global $app_strings,$mod_strings,$theme,$currentModule;
@@ -90,9 +89,8 @@
 $smarty->assign("IMAGE_PATH", $image_path);
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 
-$ticket_tables = Array('troubletickets','crmentity','ticketcf');
 $tabid = getTabid("HelpDesk");
-$validationData = getDBValidationData($ticket_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