From 45f31ba931751a2bfeaa46502c8c22950dcf348d Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 23 Jul 2019 19:52:46 +0200 Subject: [PATCH] [Web] Handle score as string --- data/web/js/site/quarantine.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js index caa727624..5fe024416 100644 --- a/data/web/js/site/quarantine.js +++ b/data/web/js/site/quarantine.js @@ -17,7 +17,7 @@ jQuery(function($){ {"name":"sender","title":lang.sender}, {"name":"rcpt","title":lang.rcpt, "breakpoints":"xs sm md", "type": "text"}, {"name":"virus","title":lang.danger, "type": "text"}, - {"name":"score","title": lang.spam_score,"type": "number"}, + {"name":"score","title": lang.spam_score, "type": "text"}, {"name":"subject","title":lang.subj, "type": "text"}, {"name":"created","formatter":function unix_time_format(tm) { var date = new Date(tm ? tm * 1000 : 0); return date.toLocaleString();},"title":lang.received,"style":{"width":"170px"}}, {"name":"action","filterable": false,"sortable": false,"style":{"text-align":"right"},"style":{"width":"220px"},"type":"html","title":lang.action,"breakpoints":"xs sm md"} @@ -36,6 +36,9 @@ jQuery(function($){ } else { item.subject = escapeHtml(item.subject); } + if (item.score === null) { + item.score = '-'; + } if (item.virus_flag > 0) { item.virus = ''; } else {