mirror of https://github.com/MISP/MISP
chg: [analyst-data:edit] Fetch referenced element for analyst-data relationships by default
parent
7653b0d450
commit
bb6b105bef
|
@ -157,6 +157,9 @@ if (!$ajax) {
|
|||
}
|
||||
|
||||
function fetchAndDisplayRelatedObject(type, uuid) {
|
||||
if (!type || !uuid) {
|
||||
return
|
||||
}
|
||||
var url = baseurl + '/analystData/getRelatedElement/' + type + '/' + uuid
|
||||
$.ajax({
|
||||
type: "get",
|
||||
|
@ -187,6 +190,7 @@ if (!$ajax) {
|
|||
fetchAndDisplayRelatedObject($('#RelationshipRelatedObjectType').val(),$('#RelationshipRelatedObjectUuid').val())
|
||||
}
|
||||
})
|
||||
fetchAndDisplayRelatedObject($('#RelationshipRelatedObjectType').val(),$('#RelationshipRelatedObjectUuid').val())
|
||||
})
|
||||
|
||||
<?php if ($modelSelection === 'Relationship'): ?>
|
||||
|
|
Loading…
Reference in New Issue