mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-14 17:29:42 +00:00
allow reasons not inside a category
This commit is contained in:
@@ -70,10 +70,14 @@ class ActivityReasonRender extends AbstractChillEntityRender
|
|||||||
*/
|
*/
|
||||||
public function renderString($entity, array $options): string
|
public function renderString($entity, array $options): string
|
||||||
{
|
{
|
||||||
return $this->translatableStringHelper->localize(
|
$category = '';
|
||||||
$entity->getCategory()->getName()
|
|
||||||
).
|
if (null !== $entity->getCategory()) {
|
||||||
' > '.
|
$category = $this->translatableStringHelper->localize(
|
||||||
|
$entity->getCategory()->getName()). ' > ';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $category .
|
||||||
$this->translatableStringHelper->localize(
|
$this->translatableStringHelper->localize(
|
||||||
$entity->getName()
|
$entity->getName()
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user