Author: phuong_vu
Date: 2011-12-01 05:03:22 -0500 (Thu, 01 Dec 2011)
New Revision: 8183
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java
Log:
GTNPORTAL-2292 todo gadget has empty edit options and doesn't actually save anything
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java 2011-12-01
09:18:41 UTC (rev 8182)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java 2011-12-01
10:03:22 UTC (rev 8183)
@@ -272,8 +272,9 @@
for(int i = 0; i < count; i++)
{
JSONObject o = (JSONObject) userPrefs.get(names.get(i).toString());
-
if(!(o.get(METADATA_USERPREFS_TYPE).equals(METADATA_USERPREFS_TYPE_HIDDEN) ||
-
o.get(METADATA_USERPREFS_TYPE).equals(METADATA_USERPREFS_TYPE_LIST)))
+ String prefType = o.optString(METADATA_USERPREFS_TYPE);
+ if(!(METADATA_USERPREFS_TYPE_HIDDEN.equalsIgnoreCase(prefType) ||
+ METADATA_USERPREFS_TYPE_LIST.equalsIgnoreCase(prefType)))
return true;
}
return false;
Show replies by date