[Vtigercrm-commits] [vtiger-commits] r11069 - in /vtigercrm/branches/5.0.3: Smarty/templates/DisplayFields.tpl modules/Products/EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 26 15:52:51 EDT 2007


Author: richie
Date: Sat May 26 13:52:46 2007
New Revision: 11069

Log:
issue fixes for productactive--allen

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
    vtigercrm/branches/5.0.3/modules/Products/EditView.php

Modified: vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl Sat May 26 13:52:46 2007
@@ -322,7 +322,7 @@
 					</td>
 				{else}
 					<td width="30%" align=left class="dvtCellInfo">
-						<input name="{$fldname}" tabindex="{$vt_tab}" type="checkbox">
+						<input name="{$fldname}" tabindex="{$vt_tab}" type="checkbox" {if $PROD_MODE eq 'create'}checked{/if}>
 					</td>
 				{/if}
 			{/if}

Modified: vtigercrm/branches/5.0.3/modules/Products/EditView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/EditView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Products/EditView.php Sat May 26 13:52:46 2007
@@ -201,6 +201,11 @@
 $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
 $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
 
+// Added to set product active when creating a new product
+$mode=$focus->mode;
+if($mode != "edit" && $_REQUEST['isDuplicate'] != "true")
+$smarty->assign("PROD_MODE", "create");
+
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 $smarty->assign("DUPLICATE", $_REQUEST['isDuplicate']);





More information about the vtigercrm-commits mailing list