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 &quot;  {if $MODULE eq &#39;Leads&#39;}&quot;, it prints out the value, but after &quot; {if $entity[5] eq &#39;Not Sent&#39;}&quot;, it does not display.  this happens only in vtiger 5.1.0.<br>
<br>I can&#39;t seem to figure out what has changed. <br><br>_________________________________code__________________________________<br><br>&lt;!-- Table Contents --&gt;<br>            {foreach item=entity key=entity_id from=$LISTENTITY}<br>
            &lt;tr bgcolor=white onMouseOver=&quot;this.className=&#39;lvtColDataHover&#39;&quot; onMouseOut=&quot;this.className=&#39;lvtColData&#39;&quot; id=&quot;row_{$entity_id}&quot;&gt;<br>            &lt;td width=&quot;2%&quot;&gt;&lt;input type=&quot;checkbox&quot; NAME=&quot;selected_id&quot; id=&quot;{$entity_id}&quot; value= &#39;{$entity_id}&#39; onClick=&quot;check_object(this)&quot;&gt;&lt;/td&gt;<br>
              {* display data rows with Not sent and republished jobs with a different color*}<br><br>            {if $MODULE eq &#39;Leads&#39;}<br>               {foreach item=data from=$entity}<br>                 {if $entity[5] eq &#39;Not Sent&#39;}   <br>
               &lt;td style=&quot;background-color:#FF99FF&quot;&gt;{$data}&lt;/td&gt;<br>                 {elseif $entity[5] eq &#39;Republished&#39;}<br>                    &lt;td style=&quot;background-color:#CCCCFF&quot;&gt;{$data}&lt;/td&gt;<br>
               {elseif $entity[5] eq &#39;Repeated&#39;}<br>                    &lt;td style=&quot;background-color:#CCCCCC&quot;&gt;{$data}&lt;/td&gt;<br>                 {else}<br><br>                    &lt;td&gt;{$data}&lt;/td&gt; <br>
                 {/if} <br>               {/foreach}<br>            <br>            {else}<br>                {foreach item=data from=$entity}    <br>                &lt;td&gt;{$data}&lt;/td&gt;<br>                {/foreach}<br>
            {/if}<br>            {*// end display data rows*}<br>         <br><br>            &lt;/tr&gt;<br>