diff --git a/opencti-platform/opencti-front/src/private/components/common/form/CreatedByRefField.js b/opencti-platform/opencti-front/src/private/components/common/form/CreatedByRefField.js
index 7627eeb1d7cc..e92044d07234 100644
--- a/opencti-platform/opencti-front/src/private/components/common/form/CreatedByRefField.js
+++ b/opencti-platform/opencti-front/src/private/components/common/form/CreatedByRefField.js
@@ -114,7 +114,15 @@ class CreatedByRefField extends Component {
setFieldValue(name, {
label: data.identityAdd.name,
value: data.identityAdd.id,
+ type: data.identityAdd.entity_type,
});
+ if (typeof onChange === 'function') {
+ onChange(name, {
+ label: data.identityAdd.name,
+ value: data.identityAdd.id,
+ type: data.identityAdd.entity_type,
+ });
+ }
}}
/>
diff --git a/opencti-platform/opencti-front/src/private/components/common/identities/IdentityCreation.js b/opencti-platform/opencti-front/src/private/components/common/identities/IdentityCreation.js
index 7581ddd1d44d..5c6bcd0e6fc5 100644
--- a/opencti-platform/opencti-front/src/private/components/common/identities/IdentityCreation.js
+++ b/opencti-platform/opencti-front/src/private/components/common/identities/IdentityCreation.js
@@ -83,6 +83,7 @@ const identityMutation = graphql`
identityAdd(input: $input) {
id
name
+ entity_type
}
}
`;
diff --git a/opencti-platform/opencti-front/src/private/components/threats/campaigns/CampaignKnowledge.js b/opencti-platform/opencti-front/src/private/components/threats/campaigns/CampaignKnowledge.js
index 7b5161808de4..28eb485a20e6 100644
--- a/opencti-platform/opencti-front/src/private/components/threats/campaigns/CampaignKnowledge.js
+++ b/opencti-platform/opencti-front/src/private/components/threats/campaigns/CampaignKnowledge.js
@@ -13,6 +13,7 @@ import CampaignPopover from './CampaignPopover';
import CampaignKnowledgeBar from './CampaignKnowledgeBar';
import StixDomainEntityHeader from '../../common/stix_domain_entities/StixDomainEntityHeader';
import StixDomainEntityKillChain from '../../common/stix_domain_entities/StixDomainEntityKillChain';
+import StixDomainEntityVictimology from '../../common/stix_domain_entities/StixDomainEntityVictimology';
const styles = () => ({
container: {
@@ -100,19 +101,9 @@ class CampaignKnowledgeComponent extends Component {
exact
path="/dashboard/threats/campaigns/:campaignId/knowledge/victimology"
render={(routeProps) => (
-
)}
diff --git a/opencti-platform/opencti-front/src/private/components/threats/incidents/IncidentKnowledge.js b/opencti-platform/opencti-front/src/private/components/threats/incidents/IncidentKnowledge.js
index b009550f25b5..c72b410f36c3 100644
--- a/opencti-platform/opencti-front/src/private/components/threats/incidents/IncidentKnowledge.js
+++ b/opencti-platform/opencti-front/src/private/components/threats/incidents/IncidentKnowledge.js
@@ -13,6 +13,7 @@ import IncidentPopover from './IncidentPopover';
import IncidentKnowledgeBar from './IncidentKnowledgeBar';
import StixDomainEntityHeader from '../../common/stix_domain_entities/StixDomainEntityHeader';
import StixDomainEntityKillChain from '../../common/stix_domain_entities/StixDomainEntityKillChain';
+import StixDomainEntityVictimology from "../../common/stix_domain_entities/StixDomainEntityVictimology";
const styles = () => ({
container: {
@@ -92,19 +93,9 @@ class IncidentKnowledgeComponent extends Component {
exact
path="/dashboard/threats/incidents/:incidentId/knowledge/victimology"
render={(routeProps) => (
-
)}
diff --git a/opencti-platform/opencti-front/src/private/components/threats/malwares/MalwareKnowledge.js b/opencti-platform/opencti-front/src/private/components/threats/malwares/MalwareKnowledge.js
index 2d1277703e81..e35c42d25a2c 100644
--- a/opencti-platform/opencti-front/src/private/components/threats/malwares/MalwareKnowledge.js
+++ b/opencti-platform/opencti-front/src/private/components/threats/malwares/MalwareKnowledge.js
@@ -13,6 +13,7 @@ import MalwarePopover from './MalwarePopover';
import MalwareKnowledgeBar from './MalwareKnowledgeBar';
import StixDomainEntityHeader from '../../common/stix_domain_entities/StixDomainEntityHeader';
import StixDomainEntityKillChain from '../../common/stix_domain_entities/StixDomainEntityKillChain';
+import StixDomainEntityVictimology from "../../common/stix_domain_entities/StixDomainEntityVictimology";
const styles = () => ({
container: {
@@ -128,19 +129,9 @@ class MalwareKnowledgeComponent extends Component {
exact
path="/dashboard/threats/malwares/:malwareId/knowledge/victimology"
render={(routeProps) => (
-
)}
diff --git a/opencti-platform/opencti-front/src/private/components/threats/threat_actors/ThreatActorKnowledge.js b/opencti-platform/opencti-front/src/private/components/threats/threat_actors/ThreatActorKnowledge.js
index 5d5e2f060c70..892c315b0f63 100644
--- a/opencti-platform/opencti-front/src/private/components/threats/threat_actors/ThreatActorKnowledge.js
+++ b/opencti-platform/opencti-front/src/private/components/threats/threat_actors/ThreatActorKnowledge.js
@@ -13,6 +13,7 @@ import ThreatActorKnowledgeBar from './ThreatActorKnowledgeBar';
import StixDomainEntityHeader from '../../common/stix_domain_entities/StixDomainEntityHeader';
import StixDomainEntityKillChain from '../../common/stix_domain_entities/StixDomainEntityKillChain';
import StixDomainEntityThreatKnowledge from '../../common/stix_domain_entities/StixDomainEntityThreatKnowledge';
+import StixDomainEntityVictimology from '../../common/stix_domain_entities/StixDomainEntityVictimology';
const styles = () => ({
container: {
@@ -100,20 +101,9 @@ class ThreatActorKnowledgeComponent extends Component {
exact
path="/dashboard/threats/threat_actors/:threatActorId/knowledge/victimology"
render={(routeProps) => (
-
)}