]> source.dussan.org Git - rspamd.git/commitdiff
Fix filter reject on history-page #2010
authorKumar Akshay <k.akshay9721@gmail.com>
Wed, 28 Feb 2018 14:55:45 +0000 (06:55 -0800)
committerKumar Akshay <k.akshay9721@gmail.com>
Wed, 28 Feb 2018 14:55:45 +0000 (06:55 -0800)
interface/js/app/history.js

index e0b7aa22b38b26eec754aab5a94bcc1986728924..af941467f41c800c53829f0270b13da205bd0ef4 100644 (file)
@@ -457,7 +457,11 @@ function($, _, Humanize) {
         _onStatusDropdownChanged : function(e) {
             var self = e.data.self, selected = $(this).val();
             if (selected !== self.def) {
-                self.addFilter('action', selected, [ 'action' ]);
+                if(selected === "reject"){
+                 self.addFilter('action', 'reject -soft', [ 'action' ]);
+                } else {
+                 self.addFilter('action', selected, [ 'action' ]);
+               }
             } else {
                 self.removeFilter('action');
             }