[Vtigercrm-commits] [vtiger-commits] r7372 - in /vtigercrm/trunk/modules/Notes: DetailView.php EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 07:42:16 EDT 2006
Author: saraj
Date: Wed Jun 21 05:42:12 2006
New Revision: 7372
Log:
changes made to get validationdata and forms.php removed
Modified:
vtigercrm/trunk/modules/Notes/DetailView.php
vtigercrm/trunk/modules/Notes/EditView.php
Modified: vtigercrm/trunk/modules/Notes/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/DetailView.php (original)
+++ vtigercrm/trunk/modules/Notes/DetailView.php Wed Jun 21 05:42:12 2006
@@ -23,7 +23,6 @@
require_once('data/Tracker.php');
require_once('Smarty_setup.php');
require_once('modules/Notes/Note.php');
-require_once('modules/Notes/Forms.php');
require_once('include/upload_file.php');
require_once('include/utils/utils.php');
global $app_strings;
@@ -84,7 +83,6 @@
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
-$smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
$smarty->assign("ID", $focus->id);
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
@@ -105,6 +103,13 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
+$tabid = getTabid("Notes");
+ $validationData = getDBValidationData($focus->tab_name,$tabid);
+ $data = split_validationdataArray($validationData);
+
+ $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
+ $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
+ $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
$smarty->assign("MODULE",$currentModule);
$smarty->display("DetailView.tpl");
Modified: vtigercrm/trunk/modules/Notes/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/EditView.php (original)
+++ vtigercrm/trunk/modules/Notes/EditView.php Wed Jun 21 05:42:12 2006
@@ -23,7 +23,6 @@
require_once('Smarty_setup.php');
require_once('data/Tracker.php');
require_once('modules/Notes/Note.php');
-require_once('modules/Notes/Forms.php');
require_once('include/utils/utils.php');
global $app_strings,$app_list_strings,$mod_strings,$theme,$currentModule;
@@ -154,7 +153,6 @@
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
-$smarty->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js());
$smarty->assign("ID", $focus->id);
$smarty->assign("OLD_ID", $old_id );
@@ -177,6 +175,13 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
+$tabid = getTabid("Notes");
+ $validationData = getDBValidationData($focus->tab_name,$tabid);
+ $data = split_validationdataArray($validationData);
+
+ $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
+ $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
+ $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
if($focus->mode == 'edit')
$smarty->display("salesEditView.tpl");
More information about the vtigercrm-commits
mailing list