Skip to content

Commit

Permalink
[Data object version preview] Equal version preview of many-to-many r…
Browse files Browse the repository at this point in the history
…elations and advanced many-to-many relations (pimcore#6853)

* better readable version preview for many-to-many relation fields

* better readable version preview for many-to-many relation fields

* better readable version preview for many-to-many relation fields

* harmonize getDiffVersionPreview() for many-to-one, many-to-many and advanced many-to-many relation fields
  • Loading branch information
BlackbitDevs authored Jul 29, 2020
1 parent 17b8b60 commit c50588c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public function getVersionPreview($data, $object = null, $params = [])

foreach ($data as $element) {
if ($element instanceof Element\ElementInterface) {
$paths[] = get_class($element) .': '. $element->getRealFullPath();
$paths[] = Element\Service::getElementType($element) .' '. $element->getRealFullPath();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public function getDataForGrid($data, $object = null, $params = [])
public function getVersionPreview($data, $object = null, $params = [])
{
if ($data instanceof Element\AbstractElement) {
return $data->getRealFullPath();
return Element\Service::getElementType($data).' '.$data->getRealFullPath();
}

return '';
Expand Down

0 comments on commit c50588c

Please sign in to comment.