From 77075d5c64ac34f0155c9ee5485dc917a9a9d420 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Fri, 9 Jun 2023 13:16:00 +0200 Subject: [PATCH] Don't show `process id` if display name exists --- library/Businessprocess/Web/Component/Dashboard.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/Web/Component/Dashboard.php b/library/Businessprocess/Web/Component/Dashboard.php index 58506df..3423b2f 100644 --- a/library/Businessprocess/Web/Component/Dashboard.php +++ b/library/Businessprocess/Web/Component/Dashboard.php @@ -87,9 +87,8 @@ class Dashboard extends BaseHtmlElement foreach ($processes as $name) { $meta = $storage->loadMetadata($name); $title = $meta->get('Title'); - if ($title) { - $title = sprintf('%s (%s)', $title, $name); - } else { + + if ($title === null) { $title = $name; }