From 3ed20ae4fdf1305b896678c149401ec2d676e0f7 Mon Sep 17 00:00:00 2001 From: cdtank Date: Fri, 1 Oct 2010 17:42:31 +0000 Subject: [PATCH] 1. Made checking for "if the sparkline visualization should be rendered for an entity" safer per Brian L's suggestion. --- productMods/templates/entity/sparklineVisualization.jsp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/productMods/templates/entity/sparklineVisualization.jsp b/productMods/templates/entity/sparklineVisualization.jsp index f2e672a8..4c0301da 100644 --- a/productMods/templates/entity/sparklineVisualization.jsp +++ b/productMods/templates/entity/sparklineVisualization.jsp @@ -35,8 +35,7 @@ throw new JspException(e); } else { for (VClass currClass : entity.getVClasses()) { - //System.out.println(">> " + currClass.getName()); - if (currClass.getName().equalsIgnoreCase("Person")) { + if ("http://xmlns.com/foaf/0.1/Person".equalsIgnoreCase(currClass.getURI())) { displayVisualization = true; break; }