Append concept name to product name in csv export

This commit is contained in:
Björn Fromme
2018-10-05 11:59:49 +02:00
parent 46c3e82ffc
commit b26b1b4758
@@ -52,7 +52,7 @@ class Product
$product['@id'] = $entity->getBusProId();
$product['@code'] = $entity->getCode();
$product['name'] = preg_replace('/[\r\n\s]+/', ' ', $entity->getName());
$product['name'] = preg_replace('/[\r\n\s]+/', ' ', $entity->getName()) . ' - ' . $entity->getConcept()->getName();
$product['facts']['fact'] = array_map(function ($fact) {
/** @var Fact $fact */