From 86f3310ac1492fbd6aba27666dae852f28dc9dba Mon Sep 17 00:00:00 2001 From: Himanshu Warekar Date: Fri, 9 Aug 2019 11:05:04 +0530 Subject: [PATCH] fix: iterate over valid variable --- erpnext/public/js/templates/contact_list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/public/js/templates/contact_list.html b/erpnext/public/js/templates/contact_list.html index c4bc04ff38..a90580f652 100644 --- a/erpnext/public/js/templates/contact_list.html +++ b/erpnext/public/js/templates/contact_list.html @@ -19,9 +19,9 @@ {% if(contact_list[i].phone) { %} {%= __("Phone ") %}: {%= contact_list[i].phone %}
{% endif %} - {% if(contact_list[i].phones) { %} - {% for(var j=0, k=contact_list[i].phones.length; j + {% if(contact_list[i].phone_nos) { %} + {% for(var j=0, k=contact_list[i].phone_nos.length; j {% } %} {% endif %}