- element(
- 'ajaxTags',
- array('attributeId' => $object['id'],
+ element('ajaxTags', array(
+ 'attributeId' => $objectId,
'tags' => $object['AttributeTag'],
'tagAccess' => ($isSiteAdmin || $mayModify),
'localTagAccess' => ($isSiteAdmin || $mayModify || $me['org_id'] == $event['Event']['org_id'] || (int)$me['org_id'] === Configure::read('MISP.host_org_id')),
@@ -160,7 +159,7 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
if (!empty($includeRelatedTags)) {
$element = '';
if (!empty($object['RelatedTags'])) {
- $element = $this->element('ajaxAttributeTags', array('attributeId' => $object['id'], 'attributeTags' => $object['RelatedTags'], 'tagAccess' => false));
+ $element = $this->element('ajaxAttributeTags', array('attributeId' => $objectId, 'attributeTags' => $object['RelatedTags'], 'tagAccess' => false));
}
echo sprintf(
'
%s | ',
@@ -169,15 +168,14 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
);
}
?>
-
-
+ |
element('galaxyQuickViewNew', array(
'mayModify' => $mayModify,
'isAclTagger' => $isAclTagger,
'data' => (!empty($object['Galaxy']) ? $object['Galaxy'] : array()),
'event' => $event,
- 'target_id' => $object['id'],
+ 'target_id' => $objectId,
'target_type' => 'attribute',
));
?>
@@ -204,7 +202,7 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
|
';
echo $this->element('Events/View/attribute_correlations', array(
'scope' => 'Attribute',
@@ -354,25 +352,25 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
if ($object['deleted']):
if ($isSiteAdmin || $mayModify):
?>
-
-
+
+
-
+
-
+
-
+
@@ -382,12 +380,12 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
if ($isSiteAdmin || $mayModify):
if (isset($modules) && isset($modules['types'][$object['type']])):
?>
-
+
-
+
@@ -395,11 +393,11 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
-
+
-
+
|