[Vtigercrm-developers] [vtiger-commits] r3860 - /vtigercrm/trunk/modules/Quotes/EditView.php

vtiger-commits at vtiger.fosslabs.com vtiger-commits at vtiger.fosslabs.com
Tue Feb 21 02:43:26 PST 2006


Author: richie
Date: Tue Feb 21 03:43:21 2006
New Revision: 3860

Log:
Added 2 if else block to separate Create New from Edit View.

Modified:
    vtigercrm/trunk/modules/Quotes/EditView.php

Modified: vtigercrm/trunk/modules/Quotes/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/EditView.php (original)
+++ vtigercrm/trunk/modules/Quotes/EditView.php Tue Feb 21 03:43:21 2006
@@ -98,7 +98,12 @@
 $comboFieldArray = getComboArray($comboFieldNames);
 
 $disp_view = getView($focus->mode);
-$smarty->assign("BLOCKS",getBlocks("Quotes",$disp_view,$mode,$focus->column_fields));
+if($disp_view == 'edit_view')
+	$smarty->assign("BLOCKS",getBlocks("Quotes",$disp_view,$mode,$focus->column_fields));
+else	
+{
+	$smarty->assign("BASBLOCKS",getBlocks("Quotes",$disp_view,$mode,$focus->column_fields,'BAS'));
+}
 $smarty->assign("OP_MODE",$disp_view);
 
 $smarty->assign("MODULE",$currentModule);
@@ -252,6 +257,10 @@
 $smarty->assign("VALIDATION_DATA_FIELDLABEL",$fieldLabel);
 
 $smarty->assign("MODULE", $module);
+
+if($focus->mode == 'edit')
 $smarty->display("salesEditView.tpl");
+else
+$smarty->display('CreateView.tpl');
 
 ?>





More information about the vtigercrm-developers mailing list