mirror of https://github.com/MISP/MISP
fix: [attribute correlations] account for both entry points, event view and attribute index
- to select the correct field for the remote ID (rather than point at an attribute ID in the related events)composer_fix
parent
91d87b4e44
commit
68c6563dc8
|
@ -32,11 +32,12 @@
|
|||
foreach ($relatedData as $k => $v) {
|
||||
$popover .= '<b class="black">' . h($k) . '</b>: <span class="blue">' . h($v) . '</span><br>';
|
||||
}
|
||||
$relevantId = !isset($relatedAttribute['attribute_id']) ? $relatedAttribute['Event']['id'] : $relatedAttribute['id'];
|
||||
$link = $this->Html->link(
|
||||
$relatedAttribute['Event']['id'],
|
||||
$relevantId,
|
||||
$withPivot ?
|
||||
['controller' => 'events', 'action' => 'view', $relatedAttribute['Event']['id'], true, $event['Event']['id']] :
|
||||
['controller' => 'events', 'action' => 'view', $relatedAttribute['Event']['id']],
|
||||
['controller' => 'events', 'action' => 'view', $relevantId, true, $event['Event']['id']] :
|
||||
['controller' => 'events', 'action' => 'view', $relevantId],
|
||||
['class' => ($relatedAttribute['org_id'] == $me['org_id']) ? $linkColour : 'blue']
|
||||
);
|
||||
echo sprintf(
|
||||
|
|
Loading…
Reference in New Issue