Source
116
116
117
117
if ($event['r_eventid'] != 0) {
118
118
if ($event['correlationid'] != 0) {
119
119
$correlations = API::Correlation()->get([
120
120
'output' => ['correlationid', 'name'],
121
121
'correlationids' => [$event['correlationid']]
122
122
]);
123
123
124
124
if ($correlations) {
125
125
if ($allowed['ui_correlation']) {
126
-
$correlation_name = (new CLink($correlations[0]['name'],
127
-
(new CUrl('zabbix.php'))
128
-
->setArgument('action', 'correlation.edit')
129
-
->setArgument('correlationid', $correlations[0]['correlationid'])
130
-
->getUrl()
131
-
))->addClass(ZBX_STYLE_LINK_ALT);
126
+
$correlation_name = (new CLink($correlations[0]['name']))
127
+
->addClass(ZBX_STYLE_LINK_ALT)
128
+
->addClass('js-correlation_edit')
129
+
->setAttribute('data-correlationid', $correlations[0]['correlationid']);
132
130
}
133
131
else {
134
132
$correlation_name = $correlations[0]['name'];
135
133
}
136
134
}
137
135
else {
138
136
$correlation_name = _('Event correlation rule');
139
137
}
140
138
141
139
$table->addRow([_('Resolved by'), $correlation_name]);