Note.tpl - Add clause to prevent javascript crash
authorColeman Watts <coleman@civicrm.org>
Sun, 4 May 2014 23:35:14 +0000 (19:35 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 4 May 2014 23:35:14 +0000 (19:35 -0400)
templates/CRM/Contact/Page/View/Note.tpl

index 7794b522176c91966134bfbcae143528ee0dd3e5..29cace82c896c28a7ae0ca6dda1d04102b2d4735 100644 (file)
     }
 
     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}