fix: iterate over valid variable

This commit is contained in:
Himanshu Warekar 2019-08-09 11:05:04 +05:30
parent f94d183297
commit 86f3310ac1

View File

@ -19,9 +19,9 @@
{% if(contact_list[i].phone) { %} {% if(contact_list[i].phone) { %}
{%= __("Phone ") %}: <b>{%= contact_list[i].phone %}</b><br> {%= __("Phone ") %}: <b>{%= contact_list[i].phone %}</b><br>
{% endif %} {% endif %}
{% if(contact_list[i].phones) { %} {% if(contact_list[i].phone_nos) { %}
{% for(var j=0, k=contact_list[i].phones.length; j<k; j++) { %} {% for(var j=0, k=contact_list[i].phone_nos.length; j<k; j++) { %}
{%= __("Phone ") %}: {%= contact_list[i].phones[j].phone %}<br> {%= __("Phone ") %}: {%= contact_list[i].phone_nos[j].phone %}<br>
{% } %} {% } %}
{% endif %} {% endif %}
</p> </p>