Author: theute
Date: 2011-08-23 11:19:08 -0400 (Tue, 23 Aug 2011)
New Revision: 7199
Modified:
epp/portal/tags/EPP_5_1_1_GA/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategoryForm.java
Log:
JBEPP-1079
Unknown error when edit category with empty description
Modified:
epp/portal/tags/EPP_5_1_1_GA/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategoryForm.java
===================================================================
---
epp/portal/tags/EPP_5_1_1_GA/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategoryForm.java 2011-08-23
10:00:39 UTC (rev 7198)
+++
epp/portal/tags/EPP_5_1_1_GA/portlet/exoadmin/src/main/java/org/exoplatform/applicationregistry/webui/component/UICategoryForm.java 2011-08-23
15:19:08 UTC (rev 7199)
@@ -105,7 +105,8 @@
category_ = category;
uiSetting.getUIStringInput(FIELD_NAME).setEditable(false).setValue(category_.getName());
uiSetting.getUIStringInput(FIELD_DISPLAY_NAME).setValue(category_.getDisplayName());
- uiSetting.getUIFormTextAreaInput(FIELD_DESCRIPTION).setValue(
EntityEncoder.FULL.encode(category_.getDescription()) );
+ String description =
category_.getDescription()==null?"":category_.getDescription();
+ uiSetting.getUIFormTextAreaInput(FIELD_DESCRIPTION).setValue(
EntityEncoder.FULL.encode(description) );
List<String> accessPermissions = category_.getAccessPermissions();
String[] per = new String[accessPermissions.size()];
if (accessPermissions != null && accessPermissions.size() > 0)
Show replies by date