fixed a filter updating bug
authorzapata <zapata>
Wed, 15 Aug 2007 23:09:31 +0000 (23:09 +0000)
committerzapata <zapata>
Wed, 15 Aug 2007 23:09:31 +0000 (23:09 +0000)
source/mircoders/abuse/FilterEngine.java

index f21885c..10f9ac8 100755 (executable)
@@ -226,17 +226,13 @@ public class FilterEngine {
                              String aCommentAction) {
 
       try {
-        getFilterTypeForId(aType).constructFilterInstance(anExpression);
+        getFilterForId(anId).update(aType, anExpression, aComments, aTag,
+            anArticleAction, aCommentAction);
       }
       catch (AbuseExc e) {
         return e.getMessage();
       }
 
-      Entity entity = getFilterForId(anId).getEntity();
-      populateFilterEntity(entity, aType, anExpression, aComments, aTag,
-          anArticleAction, aCommentAction);
-      entity.update();
-
       return "";
     }