fixed a filter updating bug
[mir.git] / 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 "";
     }