Author: wesleyhales
Date: 2008-06-16 20:49:05 -0400 (Mon, 16 Jun 2008)
New Revision: 11061
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java
Log:
small bug in update property on dashboard
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java 2008-06-16
15:24:56 UTC (rev 11060)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/actions/PropertyAction.java 2008-06-17
00:49:05 UTC (rev 11061)
@@ -105,7 +105,7 @@
public void updateProperty()
{
String propertyName = otherPropertyName.trim();
-
+ String value = "";
//
if (propertyName.length() == 0 && selectedProperty != null)
{
@@ -115,10 +115,8 @@
//
if (propertyName.length() > 0)
{
- String value = getPropertyValue().trim();
- if (value == null)
- {
- value = "";
+ if (getPropertyValue() != null){
+ value = getPropertyValue().trim();
}
pomgr.getSelectedObject().setDeclaredProperty(propertyName, value);
}
Show replies by date