portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r601175 - /portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
Date Wed, 05 Dec 2007 00:49:55 GMT
Author: taylor
Date: Tue Dec  4 16:49:53 2007
New Revision: 601175

URL: http://svn.apache.org/viewvc?rev=601175&view=rev
Log:
support edit_defaults on registration portlet
otherwise admins are simply setting up preferences for themselves which is quite useless

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java?rev=601175&r1=601174&r2=601175&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
Tue Dec  4 16:49:53 2007
@@ -519,7 +519,7 @@
 
         PortletMode curMode = actionRequest.getPortletMode();
         if (curMode == PortletMode.EDIT ||
-            curMode == JetspeedActions.EDIT_DEFAULTS_MODE)
+            curMode.equals(JetspeedActions.EDIT_DEFAULTS_MODE))
         {
             PortletPreferences prefs = actionRequest.getPreferences();
             PreferencesHelper.requestParamsToPreferences(actionRequest);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message