From 73bc3675333579a0bbb931ce21780defbccde4c2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 4 May 2014 19:35:14 -0400 Subject: [PATCH] Note.tpl - Add clause to prevent javascript crash --- templates/CRM/Contact/Page/View/Note.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/CRM/Contact/Page/View/Note.tpl b/templates/CRM/Contact/Page/View/Note.tpl index 7794b52217..29cace82c8 100644 --- a/templates/CRM/Contact/Page/View/Note.tpl +++ b/templates/CRM/Contact/Page/View/Note.tpl @@ -194,11 +194,13 @@ } function drawCommentRows(rowId) { + if (rowId) { row = cj('tr#'+ rowId) for (i in commentRows[rowId]) { row.after(commentRows[rowId][i]); row = cj('tr#cnote_'+ i); } + } } {/literal} -- 2.25.1