[Vtigercrm-commits] [vtiger-commits] r7762 - in /vtigercrm/trunk/Smarty/templates: RelatedListContents.tpl RelatedListsHidden.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jul 4 06:40:53 EDT 2006


Author: saraj
Date: Tue Jul  4 04:40:49 2006
New Revision: 7762

Log:
* Modified to avoid save the product vendor relationship in seproducts table so that product_id value is emptied when create product from vendor related list

Modified:
    vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl
    vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl

Modified: vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl Tue Jul  4 04:40:49 2006
@@ -30,6 +30,8 @@
                         {elseif $header eq 'Products'}
                                 {if $MODULE eq 'PriceBooks'}
                                 <input title="{$APP.LBL_SELECT_PRODUCT_BUTTON_LABEL}" accessKey="" class="small" value="{$APP.LBL_SELECT_PRODUCT_BUTTON_LABEL}" LANGUAGE=javascript onclick="this.form.action.value='AddProductsToPriceBook';this.form.module.value='Products';this.form.return_module.value='Products';this.form.return_action.value='PriceBookDetailView'"  type="submit" name="button"></td>
+				{elseif $MODULE eq 'Vendors'}
+					<input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='CallRelatedList'; this.form.parent_id.value='';" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
                                 {else}
 				<input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='CallRelatedList'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
 				{/if}

Modified: vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl Tue Jul  4 04:40:49 2006
@@ -18,10 +18,7 @@
 <input type="hidden" name="return_module" id="return_module" value="{$MODULE}">
 <input type="hidden" name="return_action" value="CallRelatedList">
 <input type="hidden" name="return_id" value="{$id}">
-{* Avoid to pass the parent id when create product from Vendors relatedlist, product saved but not listed in Product LV *}
-{if $MODULE neq 'Vendors'}
-	<input type="hidden" name="parent_id" id="parent_id" value="{$id}">
-{/if}
+<input type="hidden" name="parent_id" id="parent_id" value="{$id}">
 <input type="hidden" name="parenttab" id="parenttab" value="{$CATEGORY}">
 <input type="hidden" name="action">
 {if $MODULE eq 'Activities'}





More information about the vtigercrm-commits mailing list