diff --git a/app/Http/Transformers/AssetsTransformer.php b/app/Http/Transformers/AssetsTransformer.php index 742c8013d9..fd9fa4c87a 100644 --- a/app/Http/Transformers/AssetsTransformer.php +++ b/app/Http/Transformers/AssetsTransformer.php @@ -102,6 +102,8 @@ class AssetsTransformer 'field' => e($field->convertUnicodeDbSlug()), 'value' => e($value), 'field_format' => $field->format, + 'element' =>$field->element, + ]; } else { @@ -109,6 +111,7 @@ class AssetsTransformer 'field' => e($field->convertUnicodeDbSlug()), 'value' => e($asset->{$field->convertUnicodeDbSlug()}), 'field_format' => $field->format, + 'element' =>$field->element, ];