Author: chathura
Date: Thu Dec 20 09:49:39 2007
New Revision: 11616

Log:


Fixed filter by feature of recent activity.



Modified:
   
branches/registry/0_1/modules/webapps/src/main/java/org/wso2/registry/web/actions/RecentActivityAction.java
   
branches/registry/0_1/modules/webapps/src/main/webapp/admin/recent-activity.jsp

Modified: 
branches/registry/0_1/modules/webapps/src/main/java/org/wso2/registry/web/actions/RecentActivityAction.java
==============================================================================
--- 
branches/registry/0_1/modules/webapps/src/main/java/org/wso2/registry/web/actions/RecentActivityAction.java
 (original)
+++ 
branches/registry/0_1/modules/webapps/src/main/java/org/wso2/registry/web/actions/RecentActivityAction.java
 Thu Dec 20 09:49:39 2007
@@ -58,16 +58,16 @@
         }
 
         int filterValue = -1;
-        if (filter.equals("2")) {
+        if (filter.equals("resourceActions")) {
             filterValue = LogEntry.UPDATE;
 
-        } else if (filter.equals("3")) {
+        } else if (filter.equals("commentings")) {
             filterValue = LogEntry.COMMENT;
 
-        } else if (filter.equals("4")) {
+        } else if (filter.equals("taggings")) {
             filterValue = LogEntry.TAG;
 
-        } else if (filter.equals("5")) {
+        } else if (filter.equals("ratings")) {
             filterValue = LogEntry.RATING;
 
         }

Modified: 
branches/registry/0_1/modules/webapps/src/main/webapp/admin/recent-activity.jsp
==============================================================================
--- 
branches/registry/0_1/modules/webapps/src/main/webapp/admin/recent-activity.jsp 
    (original)
+++ 
branches/registry/0_1/modules/webapps/src/main/webapp/admin/recent-activity.jsp 
    Thu Dec 20 09:49:39 2007
@@ -83,6 +83,7 @@
                                         <option value 
="resourceActions">Resource Actions</option>
                                         <option value 
="commentings">Comments</option>
                                         <option value 
="taggings">Tagging</option>
+                                        <option value 
="ratings">Ratings</option>
                                     </select>
                                 </td>
                             </tr>

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to