mirror of https://github.com/MISP/MISP
fix: Fixed a JS error causing a feed edit to not populate the filter popover, fixes #1959
parent
589e4c3529
commit
2b5ae1c342
|
@ -187,9 +187,12 @@ var rules = {"pull": {"tags": {"OR":[], "NOT":[]}, "orgs": {"OR":[], "NOT":[]}}}
|
|||
var validOptions = ['pull'];
|
||||
var validFields = ['tags', 'orgs'];
|
||||
var modelContext = 'Feed';
|
||||
var tags = [];
|
||||
var orgs = [];
|
||||
|
||||
$(document).ready(function() {
|
||||
rules = convertServerFilterRules(rules);
|
||||
serverRulePopulateTagPicklist();
|
||||
feedDistributionChange();
|
||||
$("#pull_modify").click(function() {
|
||||
serverRuleFormActivate('pull');
|
||||
|
|
|
@ -2366,6 +2366,7 @@ function serverRuleUpdate() {
|
|||
});
|
||||
}
|
||||
statusOptions.forEach(function(status) {
|
||||
console.log();
|
||||
if (rules[type][field][status].length > 0) {
|
||||
$('#' + type + '_' + field + '_' + status).show();
|
||||
var t = '';
|
||||
|
|
Loading…
Reference in New Issue