From e8f2b25cdd14c68e3740ccd4eeea04032b0f8a7d Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Mon, 12 Feb 2007 05:36:20 +0000 Subject: [PATCH] new PartyInvitation table causing display of entities fall over : fixed git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@506293 13f79535-47bb-0310-9956-ffa450edef68 --- .../webtools/WEB-INF/actions/entity/EntityRefMain.bsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityRefMain.bsh b/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityRefMain.bsh index 9a41c982fc..0e7b0383f8 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityRefMain.bsh +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityRefMain.bsh @@ -100,9 +100,9 @@ if (security.hasPermission("ENTITY_MAINT", session)) { javaName = field.getIsPk() ? "" + field.getName() + "" : field.getName(); javaNameMap.put("name", javaName); javaNameMap.put("colName", field.getColName()); - javaNameMap.put("type", field.getType()); - javaNameMap.put("javaType", (field.getType() != null) ? type.getJavaType() : null); - javaNameMap.put("sqlType", (field.getType() != null) ? type.getSqlType() : null); + javaNameMap.put("type", (field.getType()) != null ? field.getType() : null); + javaNameMap.put("javaType", (field.getType() != null && type != null) ? type.getJavaType() : "Undefined"); + javaNameMap.put("sqlType", (type != null && type.getSqlType() != null) ? type.getSqlType() : "Undefined"); javaNameList.add(javaNameMap); }