diff --git a/module/bug/ui/common.html.php b/module/bug/ui/common.html.php
index 1f12992206..02565a5dde 100644
--- a/module/bug/ui/common.html.php
+++ b/module/bug/ui/common.html.php
@@ -10,8 +10,16 @@ declare(strict_types=1);
*/
namespace zin;
-function setCommonProps($bug, $title)
+function setCommonProps(object $bug, string $title = ''): array
{
+ if(empty($title))
+ {
+ global $app, $lang;
+ $module = $app->getModuleName();
+ $method = $app->getMethodName();
+ $title = !empty($lang->$module->$method) ? $lang->$module->$method : zget($lang, $method);
+ }
+
$items[] = set::shadow(false);
$items[] = set::title($title);
$items[] = set::headingClass('modal-heading');