From 537765182dea7bfbded3f7930f5fea8f67c8af92 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Fri, 26 Mar 2021 16:53:32 +0100 Subject: [PATCH] #1893 Update patternId field type in case filter field list --- thehive/app/org/thp/thehive/controllers/v0/DescribeCtrl.scala | 2 +- thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thehive/app/org/thp/thehive/controllers/v0/DescribeCtrl.scala b/thehive/app/org/thp/thehive/controllers/v0/DescribeCtrl.scala index 97aec1d625..85b5889188 100644 --- a/thehive/app/org/thp/thehive/controllers/v0/DescribeCtrl.scala +++ b/thehive/app/org/thp/thehive/controllers/v0/DescribeCtrl.scala @@ -209,7 +209,7 @@ class DescribeCtrl @Inject() ( case ("dashboard", "status") => Some(Seq(PropertyDescription("status", "enumeration", Seq(JsString("Shared"), JsString("Private"), JsString("Deleted"))))) case (_, "patternId") => - Some(Seq(PropertyDescription("patternId", "patternId", Nil))) + Some(Seq(PropertyDescription("patternId", "string", Nil))) case _ => None } diff --git a/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala b/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala index 0643474110..c034572401 100644 --- a/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala +++ b/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala @@ -185,7 +185,7 @@ class DescribeCtrl @Inject() ( case (_, "_createdBy") => Some(Seq(PropertyDescription("_createdBy", "user"))) case (_, "_updatedBy") => Some(Seq(PropertyDescription("_updatedBy", "user"))) case (_, "customFields") => Some(customFields) - case (_, "patternId") => Some(Seq(PropertyDescription("patternId", "patternId", Nil))) + case (_, "patternId") => Some(Seq(PropertyDescription("patternId", "string", Nil))) case _ => None }