Hello list,<br><br>I had customized listviewentries.tpl on vtiger 5.0.4 to display different row colors depending on the lead status. <br><br>When I do the same on vtiger 5.1.0, the code/concpt does not work. <br><br>Please see the code below. $entity[5] is the lead status. <br>
<br>When I print out $entity[5] ({$entity[5] }),after " {if $MODULE eq 'Leads'}", it prints out the value, but after " {if $entity[5] eq 'Not Sent'}", it does not display. this happens only in vtiger 5.1.0.<br>
<br>I can't seem to figure out what has changed. <br><br>_________________________________code__________________________________<br><br><!-- Table Contents --><br> {foreach item=entity key=entity_id from=$LISTENTITY}<br>
<tr bgcolor=white onMouseOver="this.className='lvtColDataHover'" onMouseOut="this.className='lvtColData'" id="row_{$entity_id}"><br> <td width="2%"><input type="checkbox" NAME="selected_id" id="{$entity_id}" value= '{$entity_id}' onClick="check_object(this)"></td><br>
{* display data rows with Not sent and republished jobs with a different color*}<br><br> {if $MODULE eq 'Leads'}<br> {foreach item=data from=$entity}<br> {if $entity[5] eq 'Not Sent'} <br>
<td style="background-color:#FF99FF">{$data}</td><br> {elseif $entity[5] eq 'Republished'}<br> <td style="background-color:#CCCCFF">{$data}</td><br>
{elseif $entity[5] eq 'Repeated'}<br> <td style="background-color:#CCCCCC">{$data}</td><br> {else}<br><br> <td>{$data}</td> <br>
{/if} <br> {/foreach}<br> <br> {else}<br> {foreach item=data from=$entity} <br> <td>{$data}</td><br> {/foreach}<br>
{/if}<br> {*// end display data rows*}<br> <br><br> </tr><br>