chg: [analyst-data:edit] Fetch referenced element for analyst-data relationships by default

notes
Sami Mokaddem 2024-02-07 15:20:13 +01:00
parent 7653b0d450
commit bb6b105bef
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 4 additions and 0 deletions

View File

@ -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'): ?>