fix: [correlations] attribute index / search shows incorrect correlations, fixes #8930

- showed the attribute ID rather than the event ID, also leading to invalid URLs for pivoting
composer_fix
iglocska 2023-02-27 14:56:30 +01:00
parent d123b27960
commit 91d87b4e44
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 3 deletions

View File

@ -33,10 +33,10 @@
$popover .= '<b class="black">' . h($k) . '</b>: <span class="blue">' . h($v) . '</span><br>';
}
$link = $this->Html->link(
$relatedAttribute['id'],
$relatedAttribute['Event']['id'],
$withPivot ?
['controller' => 'events', 'action' => 'view', $relatedAttribute['id'], true, $event['Event']['id']] :
['controller' => 'events', 'action' => 'view', $relatedAttribute['id']],
['controller' => 'events', 'action' => 'view', $relatedAttribute['Event']['id'], true, $event['Event']['id']] :
['controller' => 'events', 'action' => 'view', $relatedAttribute['Event']['id']],
['class' => ($relatedAttribute['org_id'] == $me['org_id']) ? $linkColour : 'blue']
);
echo sprintf(