[Vtigercrm-commits] [vtiger-commits] r9858 - /vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Nov 18 04:45:15 EST 2006
Author: richie
Date: Sat Nov 18 02:45:07 2006
New Revision: 9858
Log:
Currency and Status is empty while editing for non admin users - fixed. Fixes #2634
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
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 Nov 18 02:45:07 2006
@@ -535,9 +535,19 @@
{foreach item=arr from=$fldvalue}
{foreach key=sel_value item=value from=$arr}
<option value="{$sel_value}" {$value}>{$sel_value}</option>
+ <!-- code added to pass Status field value, if Disabled for nonadmin -->
+ {if $value eq 'selected'}
+ {assign var="user_stat" value="$sel_value"}
+ {/if}
+ <!--code ends -->
{/foreach}
{/foreach}
</select>
+ <!-- code added to pass Status field value, if Disabled for nonadmin -->
+ {if $user_stat neq ''}
+ <input name="{$fldname}" type="hidden" value="{$user_stat}">
+ {/if}
+ <!--code ends -->
</td>
{elseif $uitype eq 105}
<td width="20%" class="dvtCellLabel" align=right>
@@ -576,9 +586,19 @@
{foreach item=arr key=uivalueid from=$fldvalue}
{foreach key=sel_value item=value from=$arr}
<option value="{$uivalueid}" {$value}>{$sel_value}</option>
+ <!-- code added to pass Currency field value, if Disabled for nonadmin -->
+ {if $value eq 'selected'}
+ {assign var="curr_stat" value="$uivalueid"}
+ {/if}
+ <!--code ends -->
{/foreach}
{/foreach}
</select>
+ <!-- code added to pass Currency field value, if Disabled for nonadmin -->
+ {if $curr_stat neq ''}
+ <input name="{$fldname}" type="hidden" value="{$curr_stat}">
+ {/if}
+ <!--code ends -->
</td>
{elseif $uitype eq 106}
<td width=20% class="dvtCellLabel" align=right>
More information about the vtigercrm-commits
mailing list