mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
allow reasons not inside a category
This commit is contained in:
parent
cd054fe6ef
commit
f4a76f659e
@ -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()
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user