Fix filters - part 2

Org and Orgc are objects on events, and the match is to be applied to id, name or uuid for easier usage of the filters.

Also, I could not find occurences of Org or Orgc outside of Event, so I removed them from the list too.
pull/161/head
Lucas Magalhães 2021-12-22 13:45:03 -03:00
parent a722be21be
commit 7f3a05ffc0
1 changed files with 7 additions and 11 deletions

View File

@ -748,8 +748,12 @@ $(document).ready(function() {
'Attribute.type', 'Attribute.type',
'Attribute.uuid', 'Attribute.uuid',
'Attribute.value', 'Attribute.value',
'Event.Org', 'Event.Org.id',
'Event.Orgc', 'Event.Org.name',
'Event.Org.uuid',
'Event.Orgc.id',
'Event.Orgc.name',
'Event.Orgc.uuid',
'Event.analysis', 'Event.analysis',
'Event.attribute_count', 'Event.attribute_count',
'Event.date', 'Event.date',
@ -760,8 +764,6 @@ $(document).ready(function() {
'Event.id', 'Event.id',
'Event.info', 'Event.info',
'Event.locked', 'Event.locked',
'Event.org_id',
'Event.orgc_id',
'Event.proposal_email_lock', 'Event.proposal_email_lock',
'Event.publish_timestamp', 'Event.publish_timestamp',
'Event.published', 'Event.published',
@ -769,13 +771,7 @@ $(document).ready(function() {
'Event.threat_level_id', 'Event.threat_level_id',
'Event.Tag.name', 'Event.Tag.name',
'Event.timestamp', 'Event.timestamp',
'Event.uuid', 'Event.uuid'
'Org.id',
'Org.name',
'Org.uuid',
'Orgc.id',
'Orgc.name',
'Orgc.uuid'
].forEach(function(field) { ].forEach(function(field) {
var tempFilter = { var tempFilter = {
"input": "text", "input": "text",