From b26b1b475899df4ba9db1db7d1ca83304ea69ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 5 Oct 2018 11:59:49 +0200 Subject: [PATCH] Append concept name to product name in csv export --- .../ext/ep_products/Classes/Domain/Serialization/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php index d596f2aa..64465daa 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Serialization/Product.php @@ -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 */