diff --git a/app/View/Elements/Events/View/row_attribute.ctp b/app/View/Elements/Events/View/row_attribute.ctp index 255dc37c3..9a985fcc3 100644 --- a/app/View/Elements/Events/View/row_attribute.ctp +++ b/app/View/Elements/Events/View/row_attribute.ctp @@ -32,7 +32,7 @@ if (!empty($k)) { $tr_class .= ' row_' . h($k); } -$objectId = h($object['id']); +$objectId = (int) $object['id']; $quickEdit = function($fieldName) use ($editScope, $object, $event) { if ($object['deleted']) { @@ -143,9 +143,8 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
- 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) { - + - +