fix: [UI] Attribute value in attribute index

pull/8402/head
Jakub Onderka 2022-05-24 12:07:45 +02:00
parent a0778774d7
commit 08f0ed4be1
2 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,8 @@ echo $this->element('/genericElements/IndexTable/index_table', [
[
'name' => __('Value'),
'sort' => 'Attribute.value',
'data_path' => 'Attribute.value'
'data_path' => 'Attribute',
'element' => 'attributeValue',
],
[
'name' => __('Tags'),

View File

@ -0,0 +1,4 @@
<?php
$attribute = Hash::get($row, $field['data_path']);
$attribute['objectType'] = 'attribute';
echo $this->element('Events/View/value_field', ['object' => $attribute]);